Friday, 27 September 2013

Can you run Ant on a buildfile that is located inside a jar?

Can you run Ant on a buildfile that is located inside a jar?

I am wondering if you can run Ant on a buildfile that would be located
inside a JAR. The reason why I am interested in this is because I would
like to include a "deploy" target in my buildfile that could be called
after the jar has been moved to its destination. That "deploy" target
would take care of extracting resources and other libraries required to
run the program.
So, for instance, I would package up properties, images and external jars
inside of my jar when building. The deployment process would then consist
of moving the jar to the location it is meant to run in, and call ant
myjar.jar/build.xml deploy or something like that.
Does that make sense?

No comments:

Post a Comment