aspose file tools*
The moose likes Other Open Source Projects and the fly likes Help needed in ant ejbjar task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Help needed in ant ejbjar task" Watch "Help needed in ant ejbjar task" New topic
Author

Help needed in ant ejbjar task

dnanirs payhsak
Ranch Hand

Joined: Dec 05, 2001
Posts: 31
I am writing the ant task for running ejbc on some entity beans and facing errors. Is there a
sample script anyone has written for running ejbc
(a ejbjar task) for container managed persistent entity beans. Thanks a lot in advance.
Dnanirs.


SCEA<br />BEA Weblogic 7 Certified<br />IBM-XML Certified<br />SCBCD<br />SCWCD<br />SCJP
Bhushan Ramning
Greenhorn

Joined: Feb 21, 2002
Posts: 2
heres the sample script...
@echo off
set TEMP_CLP=%CLASSPATH%
REM TELL ME HOW TO SET UP !
set ENV=d:\WebLogicCommerceServer3.11\bin\win32\set-environment.bat
IF not EXIST "%ENV%" goto endwithe
CALL %ENV%
set VMP=-Dweblogic.home=%WEBLOGIC_HOME% -Dweblogic.system.home=%WEBLOGIC_HOME%
SET WEBLOGIC_CLASSPATH=%WEBLOGIC_CLASSPATH%;%WEBLOGIC_HOME%\lib\persistence\TOPLink_CMP.jar
ECHO ON
%JDK_HOME%\bin\java -classpath %WEBLOGIC_CLASSPATH% %VMP% weblogic.ejbc myjarfile.jar PackingList.jar
set CLASSPATH=%TEMP_CLP%
goto end
:endwithe
echo #########################################################################
echo # HAD ERRORS IS YOUR SET-ENV CONFIGURED? Could not find:
echo # %ENV%
echo #########################################################################

:end
i am using set-env.bat file for path setting & required jar fiels are in classpath....make sure when u run ejbc, all required jar files are in classpath.
bhushan
dnanirs payhsak
Ranch Hand

Joined: Dec 05, 2001
Posts: 31
Thanks for the response. Is there a sample <ejbjar> or any other task you have, I just want to see what options to use..
Thanks,

Originally posted by Bhushan Ramning:
heres the sample script...
@echo off
set TEMP_CLP=%CLASSPATH%
REM TELL ME HOW TO SET UP !
set ENV=d:\WebLogicCommerceServer3.11\bin\win32\set-environment.bat
IF not EXIST "%ENV%" goto endwithe
CALL %ENV%
set VMP=-Dweblogic.home=%WEBLOGIC_HOME% -Dweblogic.system.home=%WEBLOGIC_HOME%
SET WEBLOGIC_CLASSPATH=%WEBLOGIC_CLASSPATH%;%WEBLOGIC_HOME%\lib\persistence\TOPLink_CMP.jar
ECHO ON
%JDK_HOME%\bin\java -classpath %WEBLOGIC_CLASSPATH% %VMP% weblogic.ejbc myjarfile.jar PackingList.jar
set CLASSPATH=%TEMP_CLP%
goto end
:endwithe
echo #########################################################################
echo # HAD ERRORS IS YOUR SET-ENV CONFIGURED? Could not find:
echo # %ENV%
echo #########################################################################

:end
i am using set-env.bat file for path setting & required jar fiels are in classpath....make sure when u run ejbc, all required jar files are in classpath.
bhushan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help needed in ant ejbjar task