Okay, so I javap'd the chmod task included with Velocity:

dlr@despot:build$ javap -classpath lib/ant.jar:$CLASSPATH
org.apache.tools.ant.taskdefs.Chmod
Compiled from Chmod.java
public class org.apache.tools.ant.taskdefs.Chmod extends
org.apache.tools.ant.Task {
    public org.apache.tools.ant.taskdefs.Chmod();
    public void execute() throws org.apache.tools.ant.BuildException;
    public void setPerm(java.lang.String);
    public void setSrc(java.lang.String);
}

Looked to me like the "file" property should be "src" instead, so I did
a search and replace on "chmod file" to "chmod src" in
build-velocity.xml.  Now I get this error:

Now building ...
Classpath:
/usr/local/jdk1.2.2/lib/dt.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/lib/java/servlet-2.2.jar:/usr/local/jdk1.2.2/lib/tools.jar:lib/ant.jar:lib/xml.jar::lib/xerces-1.1.3.jar:lib/xalan_1_1_D01.jar:lib/stylebook-1.0-b2.jar:lib/log.jar:lib/fop.jar:lib:lib/w3c.jar:lib/JavaClass.jar:lib/servlet.jar
Buildfile: build-velocity.xml
Project base dir set to: /usr/src/jakarta/jakarta-velocity/build
BUILD CONFIG ERROR: Could not create task of type: unzip because I can't
find it in the list of task class definitions
org.apache.tools.ant.BuildException: Could not create task of type:
unzip because I can't find it in the list of task class definitions
        at org.apache.tools.ant.Project.createTask(Project.java,
Compiled Code)
        at
org.apache.tools.ant.ProjectHelper.configureTasks(ProjectHelper.java,
Compiled Code)
        at
org.apache.tools.ant.ProjectHelper.configureTargets(ProjectHelper.java,
Compiled Code)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)

Does Velocity not have the right verion of Ant included with it?  The
only ant.jar in my CLASSPATH is the one that comes with Velocity.  Since
there is no unzip task in the ant.jar that is in CVS, I'm assuming that
we should update to a newer version.  Thanks.  :)
-- 

Daniel Rall <[EMAIL PROTECTED]>



"Daniel L. Rall" wrote:
> 
> Hey guys, don't mean to be a pain, just wondering if tonight's build
> problem is due to my configuration (which these things usually are).
> I've been debugging all day long and just can't step up for another one:
> 
> Now building ...
> Classpath:
> 
>/usr/local/jdk1.2.2/lib/dt.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/lib/java/servlet-2.2.jar:/usr/local/jdk1.2.2/lib/tools.jar:lib/ant.jar:lib/xml.jar::lib/xerces-1.1.3.jar:lib/xalan_1_1_D01.jar:lib/stylebook-1.0-b2.jar:lib/log.jar:lib/fop.jar:lib:lib/w3c.jar:lib/JavaClass.jar:lib/servlet.jar
> Buildfile: build-velocity.xml
> Project base dir set to: /usr/src/jakarta/jakarta-velocity/build
> BUILD CONFIG ERROR: Configuration property "file" does not have a
> setMethod in class org.apache.tools.ant.taskdefs.Chmod
> org.apache.tools.ant.BuildException: Configuration property "file" does
> not have a setMethod in class org.apache.tools.ant.taskdefs.Chmod
>         at
> org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java,
> Compiled Code)
>         at
> org.apache.tools.ant.ProjectHelper.configureTasks(ProjectHelper.java,
> Compiled Code)
>         at
> org.apache.tools.ant.ProjectHelper.configureTargets(ProjectHelper.java,
> Compiled Code)
>         at
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java,
> Compiled Code)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
> 
> It *looks* like an internal Ant error, but I don't even know what
> version we're using...thanks.  :)
> --
> 
> Daniel Rall <[EMAIL PROTECTED]>

Reply via email to