-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Forgot that attachments will be discarded, sorry 'bout that.

Below you will find the jelly script part that sets up
the Ant taskdef. I am 100% sure how to reference to
a dpendency path. Do I have to use the id or the groupId
or the artifactId?

- -------8<---------8<----------8<-----------8<--------8<--------
~    <goal name="andromda:taskdef" prereqs="andromda:init"
~      description="Define the ANdroMDA task to Ant and Jelly">
~      <ant:taskdef name="andromda"
~        classname="org.andromda.core.anttasks.AndroMDAGenTask">
~        <ant:classpath>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-beanutils')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-collections')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-digester')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-logging')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('junit')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('log4j')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('velocity')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('openide-fs')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('openide-lookup')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('jmi')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('jmitoolkit')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('jmiuml14di')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('jmiutils')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('mof')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('mdrapi')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('nbmdr')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('andromda')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('andromda-ejb')}"/>
          <ant:pathelement
path="${plugin.getDependencyPath('andromda-hibernate')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('andromda-java')}"/>
          <ant:pathelement path="${plugin.getDependencyPath('andromda-struts')}"/>
~        </ant:classpath>
~      </ant:taskdef>
~    </goal>
- ------->8--------->8---------->8----------->8-------->8--------

and this is a snippet from my project.xml, which defines all the
dependencies.

- -------8<---------8<----------8<-----------8<--------8<--------
<dependencies>
        <dependency>
                <id>commons-beanutils</id>
                <version>1.6.1</version>
                <url>http://jakarta.apache.org/commons/beanutils.html</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <id>commons-collections</id>
                <version>2.1</version>
                <url>http://jakarta.apache.org/commons/collections.html</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <id>commons-digester</id>
                <version>1.4.1</version>
                <url>http://jakarta.apache.org/commons/digester.html</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <id>commons-logging</id>
                <version>1.0.3</version>
                <url>http://jakarta.apache.org/commons/logging.html</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <id>log4j</id>
                <version>1.2.8</version>
                <url>http://jakarta.apache.org/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <id>junit</id>
                <version>3.8.1</version>
                <url>http://www.junit.org/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>velocity</groupId>
                <artifactId>velocity-dep</artifactId>
                <version>1.3.1</version>
                <url>http://jakarta.apache.org/velocity/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>openide</groupId>
                <artifactId>openide-fs</artifactId>
                <version>2.23.1</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>openide</groupId>
                <artifactId>openide-lookup</artifactId>
                <version>2.23.1</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>mdr</groupId>
                <artifactId>mdrapi</artifactId>
                <version>0.984</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>mdr</groupId>
                <artifactId>nbmdr</artifactId>
                <version>0.984</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>jmi</groupId>
                <artifactId>jmi</artifactId>
                <version>1.0</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>jmi</groupId>
                <artifactId>jmitoolkit</artifactId>
                <version>1.0</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>jmi</groupId>
                <artifactId>jmiuml14di</artifactId>
                <version>1.0</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>jmi</groupId>
                <artifactId>jmiutils</artifactId>
                <version>1.0</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>jmi</groupId>
                <artifactId>mof</artifactId>
                <version>1.0</version>
                <url>na</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>andromda</groupId>
                <artifactId>andromda</artifactId>
                <version>2.1.2</version>
                <url>http://www.andromda.org/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>andromda</groupId>
                <artifactId>andromda-ejb</artifactId>
                <version>2.1.2</version>
                <url>http://www.andromda.org/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>andromda</groupId>
                <artifactId>andromda-hibernate</artifactId>
                <version>2.1.2</version>
                <url>http://www.andromda.org/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>andromda</groupId>
                <artifactId>andromda-java</artifactId>
                <version>2.1.2</version>
                <url>http://www.andromda.org/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
        <dependency>
                <groupId>andromda</groupId>
                <artifactId>andromda-struts</artifactId>
                <version>2.1.2</version>
                <url>http://www.andromda.org/</url>
                <properties>
                        <classloader>root</classloader>
                </properties>
        </dependency>
</dependencies>
- ------->8--------->8---------->8----------->8-------->8--------

Daniel S. Haischt wrote:

| hello,
|
| I am currently writing a Maven plugin for AndroMDA.
|
| see -> http://www.andromda.org/
|
| AndroMDA ships with an Ant task called ...
|
| ~ org.andromda.core.anttasks.AndroMDAGenTask
|
| ... that needs to be executed. I tried to model the
| Maven plugin for AndroMDA equivalent to the Jalopy
| plugin which also imports a standard Ant task definition.
|
| Unfortunatly I am unable to setup my CLASSPATH appropriatly
| I guess, because I am getting a class can't be found error.
|
| -------8<--------8<----------8<---------8<--------
| taskdef class org.andromda.core.anttasks.AndroMDAGenTask
| cannot be found
| ------->8-------->8---------->8--------->8--------
|
| The AndroMDA class that contains the Ant task is
| contained within a JAR file called 'andromda-2.1.2.jar'.
|
| Can you take a look at the attached files to tell me
| how to setup the CLASSPATH variable accordingly so the
| AndroMDA task for Ant could be executed?
|
| Thanx in advance!
|
| regards
|
| daniel s. haischt
|

- ------------------------------------------------------------------------

- ---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/+vq1Sj+pfjp+UA4RApLrAKCt8jISMx5vCyOuSrXMobfMjNz2MwCfZHa8
JndkSN4wWqLJRW3A3gnS4UI=
=fiDR
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to