maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Poppe, Troy" <Troy.Po...@eia.doe.gov>
Subject RE: Problem with fileset being empty!
Date Fri, 05 Nov 2004 14:10:33 GMT


After a bit more investigation, it turns out that the fileset is not empty, but
instead it appears that the SubTask[] of ejbdoclet is empty...
(XDocletMain.java:38 in start(XJavaDoc) returns an empty SubTask[].)  This occurs
when I try to run ejbdoclet from maven.xml, as well as using the xdoclet plugin
v1.2.

Any suggestions?

Here's my complete maven.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:maven="jelly:maven" xmlns:j="jelly:core">

	<preGoal name="java:compile">
		<attainGoal name="xdoclet-ejbdoclet"/>
	</preGoal>
	
	<preGoal name="xdoclet-ejbdoclet">
		<attainGoal name="echofileset"/>
	</preGoal>
	
	<!-- Generate required Xdoclet EjbDoclet resources for this project. -->
	<goal name="xdoclet-ejbdoclet">
		<echo>scanning: ${maven.xdoclet.ejbdoclet.srcDir}</echo>
		<echo>mkdir: ${maven.xdoclet.ejbdoclet.destDir}</echo>
		<mkdir dir="${maven.xdoclet.ejbdoclet.destDir}"/>
		<property name="cp" refid="maven.dependency.classpath"/>
		<echo>maven.dependency.classpath: ${cp}</echo>
		
		<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="maven.dependency.classpath"/>
		<ejbdoclet 
			destdir="${maven.xdoclet.ejbdoclet.destDir}" 
			excludedtags="@version,@author,@todo" 
			addedtags="@xdoclet-generated at ${TODAY},@copyright The
XDoclet Team,@author XDoclet,@version ${project.version}" 
			ejbspec="${maven.xdoclet.ejbdoclet.ejbSpec}" 
			force="${maven.xdoclet.force}" 
			verbose="true">
			
			<fileset dir="${maven.xdoclet.ejbdoclet.srcDir}"
defaultexcludes="yes">
				<include name="**/*Bean.java"/>
				<include name="**/*EJB.java"/>
			</fileset>
			<packageSubstitution packages="party"
substituteWith="party.interfaces"/>
			<remoteinterface/>
			<localinterface/>
			<homeinterface/>
			<localhomeinterface/>
			<dataobject>
				<packageSubstitution packages="ejb"
substituteWith="data"/>
			</dataobject>
			<valueobject>
				<packageSubstitution packages="ejb"
substituteWith="data"/>
			</valueobject>
			<entitycmp/>
			<entitybmp/>
			<session/>
			<dao>
				<packageSubstitution packages="ejb"
substituteWith="dao"/>
			</dao>
			<deploymentdescriptor 
	
destdir="${maven.xdoclet.ejbdoclet.destDir}/META-INF" 
				validatexml="true"/>
			<jboss 
				version="3.0" 
	
destdir="${maven.xdoclet.ejbdoclet.destDir}/META-INF" 
				validatexml="false" 
				typemapping="Oracle8" 
				datasource="java:/bcsDS"/>
		</ejbdoclet>
		
		<echo>delete unneeded objects</echo>
		<delete>
			<fileset dir="${maven.xdoclet.ejbdoclet.destDir}">
				<include name="**/data/*.java"/>
				<include name="**/interfaces/*.java"/>
			</fileset>
		</delete>
		
		<path id="ejbdoclet.java.compile.src.set"
location="${maven.xdoclet.ejbdoclet.destDir}"/>
		<maven:addPath id="maven.compile.src.set"
refid="ejbdoclet.java.compile.src.set"/>
	</goal>
	
	<goal name="echofileset">
		<path id="path">
		<fileset dir="${maven.xdoclet.ejbdoclet.srcDir}"
casesensative="no" >
			<include name="**/*Bean.java"/>
			<include name="**/*EJB.java"/>
		</fileset>
		</path>
		<property name="beans" refid="path"/>
		<echo message="beans are ${beans}"/>
		
	</goal>
</project>


[-- SNIP --]

My complete project.properties

maven.multiproject.type=ejb
 
#define xdoclet properties  
maven.xdoclet.force=false
#maven.xdoclet.ejbdoclet.srcDir=${basedir}/main/src/java
maven.xdoclet.ejbdoclet.srcDir=${pom.build.sourceDirectory}
maven.xdoclet.ejbdoclet.destDir=${basedir}/target/xdoclet/ejbdoclet







###############################################################################
#
#	XDoclet Plugin Configuration 
#
###############################################################################
maven.xdoclet.ejbdoclet.ejbSpec=2.0
maven.xdoclet.ejbdoclet.verbose=true

maven.xdoclet.ejbdoclet.fileset.0=true
#maven.xdoclet.ejbdoclet.fileset.0.include=**/*Bean.java

maven.xdoclet.ejbdoclet.deploymentdescriptor.0=true
maven.xdoclet.ejbdoclet.deploymentdescriptor.0.destDir=${maven.xdoclet.ejbdoclet.
destDir}/META-INF
maven.xdoclet.ejbdoclet.deploymentdescriptor.0.validateXML=true

#maven.xdoclet.ejbdoclet.entitybmp.0=true
#maven.xdoclet.ejbdoclet.entitycmp.0=true
#maven.xdoclet.ejbdoclet.entitypk.0=true

#maven.xdoclet.ejbdoclet.session.0=true
#maven.xdoclet.ejbdoclet.session.packageSubstitution.0=true 
#maven.xdoclet.ejbdoclet.session.packageSubstitution.0.packages=ejb.session 
#maven.xdoclet.ejbdoclet.session.packageSubstitution.0.substituteWith=interfaces

#maven.xdoclet.ejbdoclet.remoteinterface.0=false
#maven.xdoclet.ejbdoclet.remoteinterface.0.packageSubstitution=true 
#maven.xdoclet.ejbdoclet.remoteinterface.0.packageSubstitution.packages=ejb.entit
y
#maven.xdoclet.ejbdoclet.remoteinterface.0.packageSubstitution.substituteWith=int
erfaces 

#maven.xdoclet.ejbdoclet.homeinterface.0=false
#maven.xdoclet.ejbdoclet.homeinterface.0.packageSubstitution=true 
#maven.xdoclet.ejbdoclet.homeinterface.0.packageSubstitution.packages=ejb.entity
#maven.xdoclet.ejbdoclet.homeinterface.0.packageSubstitution.substituteWith=inter
faces 

#maven.xdoclet.ejbdoclet.localinterface.0=false
#maven.xdoclet.ejbdoclet.localinterface.0.pattern={0}Local
#maven.xdoclet.ejbdoclet.localinterface.0.packageSubstitution.0=true 
#maven.xdoclet.ejbdoclet.localinterface.0.packageSubstitution.0.packages=ejb.enti
ty
#maven.xdoclet.ejbdoclet.localinterface.0.packageSubstitution.0.substituteWith=in
terfaces 

#maven.xdoclet.ejbdoclet.localhomeinterface.0=false
#maven.xdoclet.ejbdoclet.localhomeinterface.0.pattern={0}LocalHome
#maven.xdoclet.ejbdoclet.localhomeinterface.0.packageSubstitution=true 
#maven.xdoclet.ejbdoclet.localhomeinterface.0.packageSubstitution.packages=ejb.en
tity
#maven.xdoclet.ejbdoclet.localhomeinterface.0.packageSubstitution.substituteWith=
interfaces 

#maven.xdoclet.ejbdoclet.valueobject.0=false
#maven.xdoclet.ejbdoclet.valueobject.0.pattern={0}Value
#maven.xdoclet.ejbdoclet.valueobject.0.packageSubstitution.0=true
#maven.xdoclet.ejbdoclet.valueobject.0.packageSubstitution.0.packages=ejb.entity
#maven.xdoclet.ejbdoclet.valueobject.0.packageSubstitution.0.substituteWith=ejb.v
o

#maven.xdoclet.ejbdoclet.utilobject.0.cacheHomes=false
#maven.xdoclet.ejbdoclet.utilobject.0.includeGUID=true
#maven.xdoclet.ejbdoclet.utilobject.0.packageSubstitution.0=true
#maven.xdoclet.ejbdoclet.utilobject.0.packageSubstitution.0.packages=ejb
#maven.xdoclet.ejbdoclet.utilobject.0.packageSubstitution.0.substituteWith=ejb.ut
il



maven.xdoclet.ejbdoclet.entitybmp.0=true
maven.xdoclet.ejbdoclet.entitycmp.0=true
maven.xdoclet.ejbdoclet.entitypk.0=true
maven.xdoclet.ejbdoclet.homeinterface.0=true
maven.xdoclet.ejbdoclet.localhomeinterface.0=true
maven.xdoclet.ejbdoclet.localinterface.0=true
maven.xdoclet.ejbdoclet.remoteinterface.0=true
maven.xdoclet.ejbdoclet.session.0=true
maven.xdoclet.ejbdoclet.utilobject.0=true





###########

maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}









-----Original Message-----
From: Poppe, Troy [mailto:Troy.Poppe@eia.doe.gov] 
Sent: Thursday, November 04, 2004 3:02 PM
To: Maven Users List
Subject: [OT] Problem with fileset being empty!



This is probably off-topic, but I'm pretty sure that a second pair of eyes might
be able to help me spot my error.  TIA.

In my maven.xml I've been experimenting with trying to get the xdoclet/ejbdoclet
ant tasks to work properly.  So far I've had no luck when I run this from within
Maven (running from my munged maven.xml, as well as with the xdoclet:ejbdoclet
goal), but it works when I run it from Ant alone.  It seems that the fileset for
ejbdoclet is empty, even though it shouldn't be.  I've even tried running with
'maven -X -e xdoclet-ejbdoclet' with no exceptions or errors displayed....

I am so puzzled, any help is greatly appreciated!

Thanks in advance,

Troy Poppe

---------

My maven.xml (cut short for brevity):

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:maven="jelly:maven" xmlns:j="jelly:core">

	<preGoal name="java:compile">
		<attainGoal name="xdoclet-ejbdoclet"/>
	</preGoal>
	
	<!-- Generate required Xdoclet EjbDoclet resources for this project. -->
	<goal name="xdoclet-ejbdoclet">
		<echo>scanning: ${maven.xdoclet.ejbdoclet.srcDir}</echo>
		<mkdir dir="${maven.xdoclet.ejbdoclet.destDir}"/>
		<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="maven.dependency.classpath"/>
		<ejbdoclet 
			destdir="${maven.xdoclet.ejbdoclet.destDir}" 
			excludedtags="@version,@author,@todo" 
			addedtags="@xdoclet-generated at ${TODAY},@copyright The
XDoclet Team,@author XDoclet,@version ${project.version}" 
			ejbspec="${maven.xdoclet.ejbdoclet.ejbSpec}" 
			force="${maven.xdoclet.force}" 
			verbose="true">
			<fileset dir="${maven.xdoclet.ejbdoclet.srcDir}"
casesensative="no">
				<include name="**/*Bean.java"/>
				<include name="**/*EJB.java"/>
			</fileset>

[-- SNIP --]

My project.properties:

maven.multiproject.type=ejb
 
#define xdoclet properties  
maven.xdoclet.force=false
maven.xdoclet.ejbdoclet.srcDir=${pom.build.sourceDirectory}
maven.xdoclet.ejbdoclet.destDir=${basedir}/target/xdoclet/ejbdoclet
maven.xdoclet.ejbdoclet.ejbSpec=2.0
maven.xdoclet.ejbdoclet.verbose=true

#maven.xdoclet.ejbdoclet.fileset.0=true
#maven.xdoclet.ejbdoclet.fileset.0.include=**/*Bean.java

[-- SNIP --]

Directory listing from ${pom.build.sourceDirectory}:

C:\Projects\PartyMaven\ejb>dir /s main\src\java
 Volume in drive C has no label.
 Volume Serial Number is 88F3-5429

 Directory of C:\Projects\PartyMaven\ejb\main\src\java

11/04/04  09:49 AM    <DIR>          .
11/04/04  09:49 AM    <DIR>          ..
11/04/04  09:49 AM    <DIR>          gov
               0 File(s)              0 bytes

 Directory of C:\Projects\PartyMaven\ejb\main\src\java\gov

11/04/04  09:49 AM    <DIR>          .
11/04/04  09:49 AM    <DIR>          ..
11/04/04  09:49 AM    <DIR>          doe
               0 File(s)              0 bytes

 Directory of C:\Projects\PartyMaven\ejb\main\src\java\gov\doe

11/04/04  09:49 AM    <DIR>          .
11/04/04  09:49 AM    <DIR>          ..
11/04/04  09:49 AM    <DIR>          eia
               0 File(s)              0 bytes

 Directory of C:\Projects\PartyMaven\ejb\main\src\java\gov\doe\eia

11/04/04  09:49 AM    <DIR>          .
11/04/04  09:49 AM    <DIR>          ..
11/04/04  01:39 PM    <DIR>          party
               0 File(s)              0 bytes

 Directory of C:\Projects\PartyMaven\ejb\main\src\java\gov\doe\eia\party

11/04/04  01:39 PM    <DIR>          .
11/04/04  01:39 PM    <DIR>          ..
10/22/04  03:24 PM            18,220 PartyManagerBean.java
09/24/04  12:35 PM            51,312 PartyManagerDAO.java
11/04/04  01:40 PM            14,510 PerformancePlanBean.java
               3 File(s)         84,042 bytes

[-- SNIP --]

Maven output:


C:\Projects\PartyMaven\ejb>maven xdoclet-ejbdoclet
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

build:start:

xdoclet-ejbdoclet:
    [echo] scanning: C:\Projects\PartyMaven\ejb\main\src\java
    [echo] delete unneeded objects
BUILD SUCCESSFUL
Total time: 24 seconds
Finished at: Thu Nov 04 14:54:33 EST 2004


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message