Parsing java sources which are included in a jar archive

Jérémie Balcaen <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hello,

I have a Java class Clazz1 which is a subclass of Clazz2 (public Clazz1 extends Clazz2) but Clazz2 is in a jar file (myjarfile-1.0.jar).
In Clazz2, there are some tags like in Clazz1 which must provide a final file. But the tags in Clazz2 are refused to consider.

I have read some documents which recommend to unpack the java sources but it doesn't work :

  <!-- *******************************************************************  --> 
  <!-- target to unpack the java sources  --> 
  <!-- *******************************************************************  --> 
  <target name="prepare-xdoclet"> 
  	<unjar dest="${src.xdoclet}" overwrite="false"> 
      		<fileset dir="${maven.repo.local}/cwsoft/jars/"> 
        		<include name="myjarfile-1.0.jar"/> 
      		</fileset> 
      		<patternset> 
        		<include name="**/*.java"/> 
      		</patternset> 
    	</unjar> 
  </target> 

<target name="mapping" depends="prepare-xdoclet">
	  <taskdef name="mappingdoclet" classname="com.cwsoft.xdoclet.dao.DaoDocletTask">
	            <classpath>
	                <fileset dir="${maven.repo.local}/xdoclet/jars/">
	                    <include name="*.jar" />
	                </fileset>
	           	   <fileset dir="${maven.repo.local}/commons-collections/jars/">
	            	<include name="commons-collections-3.1.jar" />
	              </fileset>
	              <fileset dir="${maven.repo.local}/commons-logging/jars/">
	            	<include name="commons-logging-1.0.4.jar" />
	              </fileset>
	              <fileset dir="${maven.repo.local}/log4j/jars/">
	            	<include name="log4j-1.2.8.jar" />
	              </fileset>
	           </classpath>
	    </taskdef>
	        
	   <mappingdoclet destDir="${src.java-generated.dir}">
	          <fileset dir="${src.xdoclet}">
		            <include name="**/businessobject/*.java" />
	         </fileset>
	        <fileset dir="${src.dir}">
	                <include name="**/businessobject/*.java" />
	        </fileset>
	        	
	        <mapping/>
	                                      
	</mappingdoclet>
 </target>

Thanks in advance.


[email protected]



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.