Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=804968
--- Comment #1 from Carlo de Wolf <cdewolf(a)redhat.com> 2012-03-20 06:53:06 EDT ---
https://github.com/wolfc/gradle/blob/db644511d09a5079274ca351aa2c610ade6d...
To be able to use a task groovyc:groovyc the following should be added to a
build.xml:
<project name="gradle-bootstrap" default="bootstrap"
xmlns:groovyc="antlib:org.fedoraproject.groovyc">
</project>
The groovy package should install the following in
/etc/ant.d/org/fedoraproject/groovyc/antlib.xml:
<?xml version="1.0"?>
<antlib>
<taskdef name="groovyc"
classname="org.codehaus.groovy.ant.Groovyc">
<classpath>
<fileset dir="/usr/share/java/objectweb-asm"
includes="*.jar"/>
<pathelement path="/usr/share/java/commons-cli.jar"/>
<pathelement path="/usr/share/java/groovy.jar"/>
</classpath>
</taskdef>
</antlib>
A temporary work-around is having ant.d within the current directory and using
the following build.sh script:
#!/bin/sh
. /usr/share/java-utils/java-functions
set_jvm
LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher)"
# Explicitly add javac path to classpath, assume JAVA_HOME set
# properly in rpm mode
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
# Add my own extensions
LOCALCLASSPATH="$LOCALCLASSPATH:ant.d"
# pass bypassAndD to the build script to guard proper invocation
LOCALCLASSPATH="$LOCALCLASSPATH" exec /usr/bin/ant -DbypassAntD=true --noconfig
$*
--
Configure bugmail:
https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.