hi,

my build allways fails because of missing j2ee classes in the ejbdoclet task but i 
thought i had
provided the classes

could anyone plz have a look at my build file

the j2ee.jar containing the classes i know to need (and being sufficient to get rid of 
the missing
imports in eclipse) is located at

[pathWhereMyBuildFileIs]\dev\src\lib\j2ee.jar

attached: build file, and ant output with debug enabled (sorry for the traffic but i 
realy do not
get it and need it for my project urgently)

any hints welcome

Attachment: build.log
Description: Binary data

<?xml version="1.0" encoding="UTF-8"?>

<!-- ======================================================================= -->
<!-- B. Braun Melsungen AG - Web Monitoring Service                          -->
<!--																		 -->
<!-- 	Apache Ant (http://ant.apache.org) build file for building the		 -->
<!-- 	B. Braun Monitoring Service											 -->
<!--																		 -->
<!--	You need to have a properly configured ant installation running		 -->
<!--	plus XDoclet (http://xdoclet.sourceforge.net) available				 -->
<!--	to make use of this													 -->
<!-- 																		 -->
<!-- 	author: Erik Itter (itteerde, [EMAIL PROTECTED])				 -->
<!-- 	version: 0.0.1.0													 -->
<!-- 	date: 2004-02-03													 -->
<!--																		 -->
<!--	Copyright (c) 2004 B. Braun Melsungen AG. All rights reserved.		 -->
<!--																		 -->
<!-- ======================================================================= -->

<project name="WebMonitoringService" default="generate-ejb" basedir=".">

	<!-- properties used to address other ressources indepentently from
		 the environment you use - if there is need for changes they should
		 be done here (should not be necessary if you check out and use
		 the project as it is)
		 -->
    <property environment="env"/>
    
    <!-- directory structure -->
    <property name="src.dir" value="${basedir}/dev/src/classes"/>
    <property name="src.resources" value="${basedir}/dev/src/resources"/>
    <property name="build.dir" value="${basedir}/dev/build"/>
    <property name="build.classes.dir" value="${build.dir}/bin"/>
	<property name="lib.dir" value="${basedir}/dev/src/lib"/>
	<property name="dist.dir" value="${basedir}/dist"/>
	<property name="tools.dir" value="${basedir}/dev/tools"/>
	<property name="doc.dir" value="${basedir}/dev/doc"/>
	<property name="doc.todo.dir" value="${doc.dir}/todo"/>
	
	<property name="xdoclet.lib.dir" value="${tools.dir}/xdoclet/xdoclet-1.2"/>
	
	<!-- compiler settings -->
	<property name="javac.debug" value="off"/>
	<property name="javac.deprectation" value="off"/>
	
	<!-- build unit tests? -->
	<property name="javac.tests" value="off"/>
	
	<!-- JavaDoc settings -->
	<property name="docs.access" value="protected"/>
	
	<!-- logging level -->
	<property name="log4j.root.level" value="INFO"/>
	
	<!-- EJB settings -->
	<property name="gen.src.dir" value="${basedir}/dev/gensrc"/>
	<property name="ejb.deployment.dir" value="${dist.dir}"/>



	<!-- >>> path references >>> -->
	
    	<!-- XDoclet class path to pull in XDoclet for ejbdoclet target -->
		<path id="xdoclet.lib.path">
			<fileset dir="${lib.dir}" includes="*.jar"/>
			<fileset dir="${xdoclet.lib.dir}" includes="*.jar"/>
		</path>
	
    
    <!-- <<< path references <<< -->

	<!-- there will unlikely be need to change something below this for building the
		 application as origianly provided, 
		 alter data below this comment only if you are sure about what you are doing -->

	<!-- >>> additional Task definitions >>> -->
	
		<taskdef name="ejbdoclet"
			classname="xdoclet.modules.ejb.EjbDocletTask"
			classpathref="xdoclet.lib.path"
		/>
	
	<!-- <<< additional Task definitions <<< -->
	
	<!-- preperations for further targets -->
	<target name="init">
		<taskdef name="ejbdoclet"
			classname="xdoclet.modules.ejb.EjbDocletTask"
			classpathref="xdoclet.lib.path"/>
			
		<taskdef name="documentdoclet"
			classname="xdoclet.modules.doc.DocumentDocletTask"
			classpathref="xdoclet.lib.path"/>
			
	</target>
	
	<!-- generates the EJBs using EjbDocletTask from XDoclet project -->
	<target name="generate-ejb" depends="init">
		<ejbdoclet destdir="${gen.src.dir}">
			<packageSubstitution packages="ejb"
				substituteWith="interfaces"/>
			
			<fileset dir="${src.dir}">
				<include name="**/*Bean.java"/>
			</fileset>
			
			<deploymentdescriptor
				destdir="${ejb.deployment.dir}"/>
			
			<homeinterface/>
			<remoteinterface/>
			<localinterface/>
			<localhomeinterface/>
			
			
			<valueobject>
				<packageSubstitution
					packages="ejb" substituteWith="value"/>
			</valueobject>
			
			<utilobject includeGUID="true" cacheHomes="true">
				<packageSubstitution
					packages="ejb" substituteWith="util"/>
			</utilobject>
			
			<entitycmp/>
			<entitypk/>
			<session/>
			
		</ejbdoclet>
	</target>
	
	<!-- XDoclet todo documentation -->
	<target name="todo" depends="init">
		<documentdoclet destdir="${doc.todo.dir}">
		
			<fileset dir="${src.dir}">
				<include name="**/*.java"/>
			</fileset>
			
			<info/>
		</documentdoclet>
	</target>
	
	<!-- performs all tasks (will need some time to execute) -->
	<target name="all" depends="generate-ejb,todo">
	</target>
	
</project>

Reply via email to