It's not a secret anymore!*
The moose likes Ant, Maven and Other Build Tools and the fly likes Import Ant build from jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Import Ant build from jar" Watch "Import Ant build from jar" New topic
Author

Import Ant build from jar

Patrick Davenport
Greenhorn

Joined: May 12, 2009
Posts: 10
Hello,
I'm trying to create a unified ant build script. All of my projects have a standard layout that I do not deviate from (lib projects have one structure, wars extend jars structure, etc). I want to build one ant script that will then just be imported into various projects. The trick is this ant script will be in a common project that all other projects will have on their classpath. As a result, I would like to simply include the ant script in the common.jar file. Then ant would just import the file from the jar's path.

Is this possible? Is it possible to read a jar as it would a file system?

Thanks,
JPD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Import Ant build from jar
 
Similar Threads
common tasks in multiple build files
Executing multiple targets in subprojects
Eclipse + ANT building EAR project - best practices? Manuals?
proper structure of ANT build scripts
Porting a jar file from windows to Unix