ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "向雅" <fya...@gmail.com>
Subject Contribute for ANT a new format script with a new ProjectHelper
Date Tue, 18 Nov 2008 17:44:02 GMT
Hi team,
I made a new script ON(ObjectNotation), and I like ant and I developed
a ONProjectHelper2.
I think I should share it with all.
I want know there are someone has some interesting on it.

There is sample script for ant anton self.

project: compile, buildonant, .;
name: buildANTON;
default: deploy;
basedir: .;
path{
	id:onpath;
	pathelement	{location:"lib/antlr-3.1.1-runtime.jar"},
	{location:"${antlr}/antlr-2.7.7.jar"}	
	{location:"${antlr}/stringtemplate.jar"},
	{location: lib/antlr-3.1.1-runtime.jar, lib/on.jar}
}

target{ name: init;
	echo: "${ant.home}";
	echo{message:"${ant.project.name}"}
	delete{dir: output/classes}
	mkdir{dir: output/classes}
}

target
{	name: compile;	depends: init; description:--compile buildonant;
	javac{srcdir:src; destdir: output/classes; includes:
**/ONProjectHelper2.java; classpath:
	"lib/antlr-3.1.1-runtime.jar;lib/on.jar"}
}
{ name: deploy; depends: compile;
	jar{destfile: "${ant.home}/lib/anton.jar";
		fileset{dir: output/classes;
			include: {name:**/ONProjectHelper2.class;}
		}
		fileset{dir: src; includes: "META-INF/**";}
	}
}

Besides this, I have 2 problems:
1,I want take care of some xml format file, but current ProjectHelper
implementation just do one helper. I hope the newInstance failed so
ant can make use origin ant instead of anton. if new I do it, just
wrapper ProjectHelper2, not a good way.
2, I want search default file build.on instead of build.xml, or search
build.on or build.xml. but ProjectHelper not help:)

Best regards,
Qinxian

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


Mime
View raw message