entzik wrote:


2) go to the anT directory and execute the build.xml file (by invoking ant ...) 
- and make sure you read the readme file and do what it says.
(end of quote)




For windows users, also make sure you have pointed the environment variables 
ANT_HOME to the directory where ant is located. Additionaly update your PATH by 
adding

%ANT_HOME%bin;

Now you can invoke ant properly.



But after I have copied the generated 'lib' directory to my project's directory 
and using the build.xml as suggested at The AndroMDA Ant Task page 
(http://www.andromda.org/andromda-ant-task/index.html) and Apache's manual 
(http://ant.apache.org/manual/using.html), in essence:



<project name="MyProject" default="run" basedir=".">

&nbsp; &nbsp;<target name="mda">

&nbsp; &nbsp;&nbsp; &nbsp; <taskdef name="andromda" 
classname="org.andromda.ant.task.AndroMDAGenTask" classpathref="classpath"/>

&nbsp; &nbsp;&nbsp; &nbsp; <andromda 
configurationUri="$&#123;basedir&#125;/mda/conf/andromda.xml"/>

&nbsp; &nbsp;</target>

</project>



The following error occurs



D&#58;projectslicenserequestdemo>ant

Buildfile&#58; build.xml



mda&#58;



BUILD FAILED

D&#58;projectslicenserequestdemobuild.xml&#58;3&#58; Reference classpath not 
found.



Total time&#58; 0 seconds

D&#58;projectslicenserequestdemo>



Obviously I should use another value for the attribute classpathref, but I have 
no clue what value to use. Using the search I tried values such as 
project.class.path and ${classpath}. I do have a file .classpath in my 
project-dir, but refering to this file doesn't work either. What am I missing?



PS, I do have to note that the first invocation of the 'ant' command did not 
seem to complete properly. The only thing displayed on my screen was:

D&#58;downloadandromda-bin-3.1-RC1-SNAPSHOTant>ant

Buildfile&#58; build.xml



init&#58;



run&#58;

&nbsp; &nbsp; &nbsp;&#91;copy&#93; Copying 106 files to 
D&#58;downloadandromda-bin-3.1-RC1-SNAPSHOTantlib



After which it stops... No 'bunch of questions' as suggested in other topics.

The tip mentioned in this forum-topic 
(http://galaxy.andromda.org/forum/viewtopic.php?t=592&highlight=build+xml+ant) 
does not work because no project-structure was generated and thus no build.xml 
was generated.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3688#3688
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to