ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wei wei" <>
Subject where to get some programm examples
Date Wed, 26 Oct 2005 10:32:24 GMT

I have one build.xml file. now i want to control the running of  this ant 
build.xml in java code.
<?xml version="1.0" encoding="UTF-8"?>
<project  default="build1" name="XMLExport" basedir=".">
	<property environment="env"/>

	<property name="temp.dir" value="../temp"/>
	<property name="out.dir" value="../out"/>
	<target name="build1">
                                <zip destfile="${out.dir}/"   
	<target name="hello">
		<echo message="Hello, world (${name})"/>


public static void main(String[] arg) {
        Project project= new Project();
        File buildfile = new File("build.xml");
        ProjectHelperImpl helper = new ProjectHelperImpl();
        project.setProperty("name", "wert");

then i got a very long error message, it seems like the application can not 
find my ant api(.jar files).
does any one have this experience?
Thanks a lot.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message