Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Changing ant build script arguments?

$
0
0

I currently have a build script set up that can compile my programs however I have multiple programs in my project and do not wish to have a new build script for each of them or a very bloated script with a lot of repeated targets for each program.

 

Here is the build.xml contents: http://paste2.org/_IHD6UmMk

Here is the build.properties contents: http://paste2.org/_dXBtvZgn

 

 

I want to be able to have multiple different run configurations in IntelliJ that can each have different values for "main.class" and "output.basename" in build.properties.

 

I did a little research and from what I can understand, in the console commands for ant I can use -Dmain.class=foo.class to pass different parameters but I can't figure out how to do that for run configurations in IntelliJ.

 

 

 

Any help would be appreciated since currently I'm having to manually change build.properties and it's slowing down my work.

Thanks


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>