This post originated from an RSS feed registered with Java Buzz
by Peter Karich.
Original Post: 5-Line-Replacement of Apache Ant
Feed Title: Java and more ...
Feed URL: https://karussell.wordpress.com/category/java/feed/
Feed Description: Just another weblog. Its about my developer experiences with Java in general. In detail I will blog about NetBeans, Eclipse, Design Patterns, News, Web Frameworks and other tools. My focus will be open source tools, which make the life of a Java developer easier.
rm -rf build/
mkdir build
jars=$(find ./lib/ -iname “*.jar” | trĀ ‘\n’ ‘:’)
find ./src -iname “*\.java” > files.txt
$JAVAC_CMD -d build/ -cp $jars @files.txt
Okay, it is a very very unfair blog title - only an eye catcher!
But now you can bookmark this useful code snippet to compile your project without installing ant or even an IDE.
… and you [...]