Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ant: antcall from javascript script
<project default="main">
<target name="main">
<script language="javascript"> <![CDATA[
task = project.createTask( 'macro' );
if( task.getOwningTarget() == null ) {
task.log( "Assigning an owner ..." );
task.setOwningTarget( self.getOwningTarget() );
task.log( "Task: " + task.getOwningTarget() );
try {
} catch(err) {
task.log( "Execution error: " + err.message );
<macrodef name="macro">
<antcall target="antcall" />
<target name="antcall">
<echo>[antcall] succeed</echo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment