Help with Workspace definition
"Krysalis USB" <[email protected]> Wed, 06 Aug 2003 17:23:01 -0700
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <[email protected]> |
Hello.
I am configuring Krysalis for my project. Krysalis does the build and
generates the files for distribution if I put the code in the folder
"src/java" of my project directory ("ProjectDirectory"). When I added the
"workspace" info to the the project details, so that I can get the source
code from CVS for doing the build as specified in Gump, I am getting an
error. The error I am getting is :
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Vector.java:713)
at
org.krysalis.ant.taskdefs.CentipedeTask.getDependencies(CentipedeTask
.java:279)
at
org.krysalis.ant.taskdefs.CentipedeTask.execute(CentipedeTask.java:99
)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:185)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:309)
at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
122)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:120)
at org.apache.tools.ant.Main.runBuild(Main.java:597)
at org.apache.tools.ant.Main.start(Main.java:197)
at org.apache.tools.ant.Main.main(Main.java:235)
The "module.xml" as required by Krysalis is as follows:
<?xml version="1.0"?>
<workspace basedir="C:\ProjectDirectory"
version="0.3">
<property name="build.sysclasspath" value="only"/>
<module name="project" fullname="Project Name">
<url href="http://localhost:8080/project"/>
<repository name="projectrepository" type="cvs">
....
....
</repository>
<cvs repository="projectrepository"/>
<description>
Project description
</description>
<detailed>
Project detail description
</detailed>
<what>
<goal>
Goal of Project.
</goal>
</what>
<why>
Why?
</why>
<vendor>Project Vendor</vendor>
<licence legal="./legal">
This software is released under the Krysalis Patchy
Software License 1.1_01.
For detailed legal and licensing issues, please read the
LICENSE.* files
in the /legal directory.
</licence>
<credits>
<credit>This software includes software developed by the Apache
Software Foundation
(http://www.apache.org/).
</credit>
</credits>
<project name="project" fullname="Project Name">
<version major="0"
minor="0"
fix ="1"
tag="HEAD"/>
<package>com.pkg</package>
<ant target="gump" vm="1.2"/>
<!-- Work dirs to be included in classpath -->
<work nested="build/classes"/>
<work nested="lib"/>
<home nested="build"/>
<code type="java/plain" dir="src/java"/>
<test type="test/junit" dir="src/test"/>
<documentation type="xml/forrest" dir="src/documentation"/>
</project>
</module>
</workspace>
Could you please tell me what should be the "basedir"? I tried various
combinations like using "ProjectDirectory/src/java", etc. but none worked.
As I mentioned it works fine, if I remove the "workspace" tag.
If there is any other alternative way to pull the source from CVS, please
let me know.
Your help is greatly appreciated.
Thanks.
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01