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 [OT] Problem with fileset being empty!
Date Thu, 04 Nov 2004 20:02:10 GMT

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


Mime
View raw message