Hello together.

I'm trying to setup a development system on top of RHEL5.7. The first
step of your documentation in the wiki (DevelopmentWorkstationSetup),
the ant all, is now working fine (I had several problems on top of
RHEL6.1 and finally I switchted back to RHEL5.7, trying RHEL6.1 again in
the future).

Trying to run "ant create-webapp-dir" failed with an error (take a look
at the end of the mail).

I tried to resolve the error for the moment without success. Maybe
someone of you has already stumbled over this error earlier and can support?

Thanks, Christian.


I tried to resolve the problem this way:

ant-contrib-1.0.jar was symlinked from java/lib to java/build/build-lib.
So I think that JAR file is not missing at all.

In net/sf/antcontrib/antcontrib.properties (included in
ant-contrib-1.0.jar) I found:

---snip---
# Tasks Requiring Ant 1.6 or higher
#for=net.sf.antcontrib.logic.For
---snap---

Uncommenting this entry and updating the JAR file in
$HOME/.ivy/.../ant-contrib/ant-contrib-1.0.jar doesn't resolve the error.

I also checked /usr/share/java/ant/ant-contrib-1.0.jar (included in
ant-contrib-1.0-0.10.b2.el5), there is the same properties file like in
the package provided by Ivy.

Next try was to modify java/buildconf/build-taskdefs.xml.

I changed

---snip---
    <taskdef resource="net/sf/antcontrib/antcontrib.properties"
             classpathref="buildjars"/>
---snap---

to (found the hint here: https://sites.google.com/site/llmfei/ant-for-task)

---snip---
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
  <classpath>
    <pathelement location="${build.lib.dir}/ant-contrib-1.0.jar"/>
  </classpath>
</taskdef>
---snap---

The behaviour ist after the change the same like before.




This is the error message:

create-webapp-dir:
    [mkdir] Created dir: /home/berendt/spacewalk/java/rhnwebapp
    [mkdir] Created dir: /home/berendt/spacewalk/java/rhnwebapp/META-INF
    [mkdir] Created dir: /home/berendt/spacewalk/java/rhnwebapp/WEB-INF/lib
    [mkdir] Created dir: /home/berendt/spacewalk/java/rhnwebapp/apidoc

BUILD FAILED
/home/berendt/spacewalk/java/buildconf/build-webapp.xml:43: Could not
create task or type of type: for.

Ant could not find the task or a class this task relies upon.
[...]
        at
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:493)
        at 
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:391)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
        at org.apache.tools.ant.Task.perform(Task.java:363)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

-- 
Christian Berendt
Linux / Unix Consultant & Developer
Mail: bere...@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to