The Artima Developer Community
Sponsored Link

Java Answers Forum
Ant execution

4 replies on 1 page. Most recent reply: May 14, 2003 11:32 PM by Singh M.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Ant execution Posted: May 13, 2003 8:00 AM
Reply to this message Reply
Advertisement
How can I execute Ant from a java application?


Jaycee

Posts: 26
Nickname: jaycee
Registered: Apr, 2003

Re: Ant execution Posted: May 13, 2003 8:17 AM
Reply to this message Reply

org.apache.tools.ant.Main(String args[])

Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: Ant execution Posted: May 14, 2003 12:25 AM
Reply to this message Reply
What will that do?

Jaycee

Posts: 26
Nickname: jaycee
Registered: Apr, 2003

Re: Ant execution Posted: May 14, 2003 9:25 AM
Reply to this message Reply
import org.apache.tools.ant.Main;
 
public class ExecuteAntFromJavaApplication{
 
	public static void main(String[] args){
		String[] antArgs = getAntArgs();
 
		Main.main(antArgs);
	}
	
	public static String[] getAntArgs(){
		String[] antArgs = {"-buildfile", "build.xml",...};
		
		return antArgs;
	}
}
 
 
 
 
 

Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: Ant execution Posted: May 14, 2003 11:32 PM
Reply to this message Reply
Thanks.

Flat View: This topic has 4 replies on 1 page
Topic: [b]how to access data with java_J2EE app using crystal report v9?[/b] Previous Topic   Next Topic Topic: JVM implementation

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use