Hum little mistake in my explanation : By typing "ant -p" 1) Case of target and target-group mixed project help will display something like :*Available target :* compile --> compile the current projet org.apache.ant#jar.compile-java --> compile java classes on the current project package --> package the current project org.apache.ant#jar.package-jar --> package this project as a jar
2) Case when target and target-group are separated *Available target-group :* compile-java --> compile java classes on the current project package-jar --> package this project as a jar *Available target :* compile --> compile the current projet package --> package the current project 2008/11/19 Jean-Louis BOUDART <[EMAIL PROTECTED]> > > svn revision 718943 contains target-group (without documentation) as a >> special kind of target that must always be empty. > > targets and target-groups have a new attribute target-group that can >> be used to add the target(-group) to a named target-group that must >> have been defined already[1]. Maybe this should be a comma-separeted >> list of traget-groups to add to instead. >> >> Dependenices are always appended. > > Nice ! > > > >> I think I got the naming conventions of include right, but there will >> be some import scenarios that haven't been covered (like the imporitng >> build file naming a plain target the same as an imported >> target-group). > > I just have two questions : > > - Does prefix of <import> / <include> make sense on target-group? Or > should we consider target-group as an "abstract target" that is never > prefixed? > - When displaying projecthelp should we have target and target-group > mixed? or should we have a distinction? > > Exemple : > <project name="org.apache.ant#jar"> > <target name="compile-java" target-group="compile" > description="compile java classes on the current project" > > .... > </target> > <target name="package-jar" target-group="package" > description="package this project as a jar"> > .... > </target> > </project> > <project name="generic"> > <target-group name="compile" description="compile the current > projet"/> > <target-group name="package description="package the current > project" depends="compile"/> > <include file="/path/to/jar.xml" as="jar" /> > </project> > By typing "ant -p" > 1) Case of target and target-group mixed project help will display > something like :*Available target :* > compile --> compile the current projet > compile-java --> compile java classes on the current project > package --> package the current project > package-jar --> package this project as a jar > > 2) Case when target and target-group are separated > *Available target-group :* > compile-java --> compile java classes on the current project > package-jar --> package this project as a jar > *Available target :* > compile --> compile the current projet > package --> package the current project > > > Regards > Jean Louis >