This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes how i can use a 3rd party build.xml in my own build file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "how i can use a 3rd party build.xml in my own build file?" Watch "how i can use a 3rd party build.xml in my own build file?" New topic
Author

how i can use a 3rd party build.xml in my own build file?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
thank you for reading my post.
I have a build.xml which is from a 3rd party application server.
we should pass a .war file to it to deploy the war file in the specific container.

now i want to use this build file inside my own build file.

can you tell me how i should do this?
specially how i should pass the war file name to it? (I have war file name in my own build file)

thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32507
    
214

Raminaa,
Take a look at the ant task to call another build file. You can pass information to it as properties.

If you show how you passed the .war file to the original build.xml, we can give you a more specific example.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how i can use a 3rd party build.xml in my own build file?
 
It's not a secret anymore!