I have a Java command-line application, and would like to create an Ant* build script that will create all the required batch/shell scripts to run the application successfully including all the classpath variables. I need it to do the following:
- Create a shell script file for Linux/Unix and a batch file for Windows/DOS
- Add all classpath dependencies (from Maven or simply use the build path in Eclipse)
- Add any necessary boilerplate sh/bat code to run (ENV variables, JAVA_HOME, etc.)
I found only a partial answer here.
But I haven't found anything that does this basic and trivial task that every build involves.
Disclaimer - the original question was Ant/Maven, but I would prefer to see if it can be done in Ant.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…