#
# WIZARD Section
#

#
# task is a checkbox on the 1st page of wizard
#
task.compile.name = Compile classes from the selected diagram
task.compile.order = 1

task.generateDD.name = Generate Deployment Descriptor
task.generateDD.order = 2

task.deleteTemp.name = Clear temp folder after finish
task.deleteTemp.order = 3

task.hotdeploy.name = Hot Deploy
task.hotdeploy.order = 4

#
# Wizard pages
#
page.dirs.name = Common Properties
page.dirs.order = 1

page.hotdeploy.name = Run-time deploy
page.hotdeploy.task = hotdeploy
page.hotdeploy.order = 4

#
# Wizard properties
#

#
# NAME = default value
# NAME.name = name of the field in wizard dialog
# NAME.type = type of property editor
# NAME.page = name of page of wizard dialog where the property should appear
# NAME.order = number specifying order of the property among others on the page

TEMP_OUT = /tmp
TEMP_OUT.name = Folder for the temporary files
TEMP_OUT.type = DirectoryField
TEMP_OUT.page = dirs
TEMP_OUT.order = 1

RESULT_OUT.name = Folder for the generated JAR file
RESULT_OUT.type = DirectoryField
RESULT_OUT.page = dirs
RESULT_OUT.order = 1


JAVA_HOME = /usr/local/jdk1.2.2
JAVA_HOME.name = JDK 1.2 root directory
JAVA_HOME.type = DirectoryField
JAVA_HOME.page = dirs
JAVA_HOME.order = 2

WL_HOME = /usr/local/weblogic
WL_HOME.name = Root directory of WebLogic 5.0 installation
WL_HOME.type = DirectoryField
WL_HOME.page = dirs
WL_HOME.order = 3

WL_PASSWORD.name = System password
WL_PASSWORD.type = PasswordField
WL_PASSWORD.page = hotdeploy
WL_PASSWORD.order = 1

WL_PORT = 7001
WL_PORT.name = Server port
WL_PORT.type = IntField
WL_PORT.page = hotdeploy
WL_PORT.order = 2

WL_HOST = localhost
WL_HOST.name = Server host
WL_HOST.type = StringField
WL_HOST.page = hotdeploy
WL_HOST.order = 3

WL_HOTDEPLOY = true
WL_HOTDEPLOY.type = BooleanField
WL_HOTDEPLOY.name = hotdeploy
WL_HOTDEPLOY.order = 7

#
# PLUGIN Properties
#

#
# not editable properties
#
# ".page" is not defined; the property doesn't appear on any page of wizard


plugin.name = WebLogic 5.0
plugin.version = 1.1
plugin.message_tab = EJB Deployment
plugin.message_prefix = WLS50beta1:\u0020

ejb.type = 1.1
ejb.ddprologue = <?xml version="1.0"?>\n\
      <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.2//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_2.dtd'>

ejb.extprologue = <?xml version="1.0"?>\n\
      <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://www.beasys.com/j2ee/dtds/weblogic-ejb-jar.dtd'>	
#      <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'>

#ejb.extrdbmsprologue = <!DOCTYPE weblogic-rdbms-bean PUBLIC\n '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence//EN'\n 'http://www.bea.com/servers/wls510/dtd/weblogic-rdbms-persistence.dtd'>
ejb.extrdbmsprologue = <!DOCTYPE weblogic-rdbms-bean PUBLIC\n "-//BEA Systems, Inc.//DTD WebLogic EJB RDBMS Persistence Type 1.0//EN"\n "http://www.beasus/com/weblogic-rdbms-persistence.dtd">


env_JAVAC = %%JAVA_HOME%%/bin/javac
env_JAR = %%JAVA_HOME%%/bin/jar
env_JRE = %%JAVA_HOME%%/bin/java

env_WLLIB = %%WL_HOME%%/lib/unpacked_jars

env_CP = %%JAVA_HOME%%/jre/lib/rt.jar:\
    \
    %%JAVA_HOME%%/lib/rt.jar:\
    %%WL_HOME%%/classes:\
    %%WL_HOME%%/lib/weblogicaux.jar:\
    %%env_WLLIB%%/collections.zip:\
    %%env_WLLIB%%/javax_ejb.zip:\
    %%env_WLLIB%%/jsafe.zip:\

env_bin = %%WL_HOME%%/bin
env_wlCP = %%WL_HOME%%/classes
env_hotdeploy = %%env_bin%%/deploy

# delete temp directory before compiling
write.step.0 = %%TEMP_OUT%%
write.step.0.type = ejbframework.step.RemoveDir
write.step.0.task = task.compile

read.step.1 = echo Not implemented yet
read.step.1.label = start

write.step.1 = Start Export
write.step.1.type = ejbframework.step.DisplayMessage

# Create directories if they are not existing yet
write.step.2 = %%RESULT_OUT%%
write.step.2.type = ejbframework.step.CreateDir

write.step.3 = %%TEMP_OUT%%
write.step.3.type = ejbframework.step.CreateDir

write.step.4 = %%TEMP_OUT%%/META-INF
write.step.4.type = ejbframework.step.CreateDir

write.step.10 = %%env_JAVAC%%  -d %%TEMP_OUT%% -classpath %%env_CP%% %%classes_to_compile%%
write.step.10.label = compile
write.step.10.type = ejbframework.step.Compile
write.step.10.task = task.compile

env_EjbJar = %%TEMP_OUT%%/META-INF/ejb-jar.xml
env_WlsExtensions = %%TEMP_OUT%%/META-INF/weblogic-ejb-jar.xml
env_WlsRDBMSExtensions = %%TEMP_OUT%%/META-INF/weblogic-cmp-rdbms-jar.xml

write.step.20 = %%env_EjbJar%%
write.step.20.label = generate DeploymentDescriptor
write.step.20.type = ejbframework.step.ProviderDDGenerator11
write.step.20.task = task.generateDD

write.step.21 = %%env_WlsExtensions%%
write.step.21.label = generating WebLogic Extensions of DeploymentDescriptor to %%env_WlsExtensions%%
write.step.21.type = ejbframework.plugins.wls51.steps.Weblogic_ejb_jar
write.step.21.task = task.generateDD

write.step.22 = %%env_WlsRDBMSExtensions%%
write.step.22.label = generating WebLogic Extensions of DeploymentDescriptor to %%env_WlsRDBMSExtensions%%
write.step.22.type = ejbframework.plugins.wls51.steps.Weblogic_rdbms_jar
write.step.22.task = task.generateDD

#write.step.30 = echo generate XML
#write.step.30.label = generate provider DD
#write.step.30.type = ejbframework.step.ProviderDDGenerator11

# create manifest file at the pointed location
#write.step.40 = %%TEMP_OUT%%/MANIFEST.MF
#write.step.40.type = wl50plugin.ownSteps.GenerateManifest

# "-C %%TEMP_OUT%% ." means that root of directories to archive is located in TEMP_OUT and parent
# levels of directory tree should not arrive in result jar. All files and subdirectories
# of TEMP_OUT should be added
write.step.45 = %%env_JAR%% cvf %%RESULT_OUT%%/%%$PRJ_NAME%%.jar -C %%TEMP_OUT%%/ .
write.step.45.type = ejbframework.step.ExecuteCommandLine

write.step.50 = %%env_JRE%% -cp %%env_CP%% -Dweblogic.home=%%WL_HOME%% weblogic.ejbc -compiler %%JAVA_HOME%%/bin/javac %%RESULT_OUT%%/%%$PRJ_NAME%%.jar -d %%WL_HOME%%/myserver/%%$PRJ_NAME%%.jar
write.step.50.label = creating JAR step 2: compile and jar by ejbc to %%RESULT_OUT%%/%%$PRJ_NAME%%1.jar
write.step.50.type = ejbframework.step.ExecuteCommandLine

# WLS 5.O Hot Deploying
write.step.51 = %%env_JRE%% -cp %%env_CP%% weblogic.deploy -port %%WL_PORT%% -host %%WL_HOST%% deploy %%WL_PASSWORD%% %%$PRJ_NAME%% %%WL_HOME%%/myserver/%%$PRJ_NAME%%.jar
write.step.51.label = hot deploying of %%WL_HOME%%/myserver/%%$PRJ_NAME%%.jar to running WLS 5.0 server
write.step.51.type = ejbframework.step.ExecuteCommandLine
write.step.51.task = task.hotdeploy
                          
# delete temp directory
write.step.100 = %%TEMP_OUT%%
write.step.100.type = ejbframework.step.RemoveDir
write.step.100.task = task.deleteTemp
