This post originated from an RSS feed registered with Java Buzz
by Jeremy Rayner.
Original Post: megg: automatic downloading and unpacking
Feed Title: javanicus
Feed URL: http://www.javanicus.com/blog2/subjects/java-rss.xml
Feed Description: Jeremy Rayner on java and other stuff.
One issue when starting a new project, is getting hold of those pesky dependancies (jars/tld etc). I've updated megg to automatically grab them for you. megg will now take care of downloading a released file at any url, and unzipping or untaring the archive, and then copy the necessary into the right place for your project.
The best explanation is through an example.
java -jar megg-0.1.0.jar groovy
will create all necessary files for minimal groovy project
and then unpack the three essential jar files needed in the lib dir
from the auto downloaded groovy-1.0-beta-4.tar.gz
This is how this is declared, note use of ! to delimit url ! packedFile ! packedFile...
The dependancy declaration inside inherit the outer dependancy declarations