ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <mil...@gmx.de>
Subject Re: Replacing build.xml with Build.java - Doing Ant builds directly from Java
Date Thu, 11 Jun 2009 23:42:31 GMT
Ashley Williams schrieb am 11.06.2009 um 17:51:45 (+0100):
> 
> 		// create the ant parent project
> 		Project project = new Project();
> 		project.setName("project");
> 		project.init();
> 
> 		// create the child target
> 		Target target = new Target();
> 		target.setName("target");
> 		project.addTarget(target);
> 		project.addBuildListener(new Log4jListener());

The Ant XML isn't exactly compact and doesn't flow like, say, Python
or Perl; but painstakingly recreating the XML structure from the API
is even harder for the eyeball.

But of course, this usage may have its places and applications.

Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message