Attribute not supported for <ejbgen> task from Antrun.
------------------------------------------------------

         Key: MANTRUN-50
         URL: http://jira.codehaus.org/browse/MANTRUN-50
     Project: Maven 2.x Antrun Plugin
        Type: Bug

    Versions: 1.2    
 Environment: Windows XP, Maven 2.0.4, Weblogic 8.1-sp2, java 1.4_2, 2G Ram, 
Ant 1.6.5
    Reporter: Michael D Johnson
 Attachments: build.xml

When running <ejbgen> task using command line Ant, task executes as expected.  
When running same target using Antrun plugin, task fails with error message 
stating that "fork" is not a valid attribute of <ejbgen> task.  I'm not sure if 
this is a classpath issue with Antrun not passing all properties to Ant, or if 
this is a failure of the Plugin.

The task in question appears as follows:

<!-- auto generate the files -->            
        <ejbgen outputDir="${ejb.temp.dir}/output" forceGeneration="yes" 
fork="yes" jndiPrefix="pm/" wls81="true" noValueClasses="true" 
noImports="false">             
          <classpath refid="compilation.classpath"/>
          <fileset dir="${ejb.temp.dir}/input" includes="*.java" />
        </ejbgen>     

The taskdef for this task appears as follows:

<taskdef 
      name="ejbgen" 
      classname="com.bea.wls.ejbgen.ant.EJBGenAntTask"
      classpath="${common.lib}/ejbgen.jar"/>

I have also attached the build.xml file for reference.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to