GayaBalan / ivybeans

Automatically exported from code.google.com/p/ivybeans
0 stars 0 forks source link

Make ivybeans ant classpath mechanism extensible #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some projects have a requirement for setting other classpaths, beyond those 
provided automatically in ivy-impl.xml ant script. 

Some examples classpaths can be for finding ant typedefs for additional build 
tools, for bootclasspath , and extension classpath.

This enhancement adds an empty ant target to ivy-impl.xml which can be 
over-ridden in the project's build.xml to set or override such classspaths.  

Two macros are provided for use in such an over-ridden target. These can be 
used to append the classpath of either an ivybeans scope, or an ivy conf to a 
specified classpath property.

For example a project using jaxb needs some additional classpaths defined to 
the jaxb tools in order to build independently of netbeans (such as on a CI 
server).

using this enhancement, this can be achieved by adding a new conf "jaxb" to 
ivy.xml,    e.g.

        <conf name="jaxb"/>
    </configurations>
    <publications />
    <dependencies>
        <dependency org="com.sun.xml.bind" name="jaxb-xjc" rev="2.2.1.1+" conf="jaxb->default"/>

and the following target to build.xml

    <target name="-ivy-custom-paths">
        <appendIvyConfPath property="jaxbwiz.gensrc.classpath" conf="jaxb" />
        <appendIvyConfPath property="jaxbwiz.xjcdef.classpath" conf="jaxb" />
        <appendIvyConfPath property="jaxbwiz.xjcrun.classpath" conf="jaxb" />
    </target>

Original issue reported on code.google.com by bruce.ch...@gmail.com on 9 Sep 2010 at 9:55

GoogleCodeExporter commented 9 years ago
fixed by revision 302

Original comment by bruce.ch...@gmail.com on 9 Sep 2010 at 10:06