buildWebLogic.bat
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:3k
源码类别:
Java编程
开发平台:
Java
- rem "Cleaning previous build (if any)"
- rmdir /s/q build
- rem "Creating a stating area for the build"
- mkdir build buildejb buildejbMETA-INF
- mkdir buildweb buildwebWEB-INF buildwebWEB-INFclasses
- mkdir buildMETA-INF
- rem "Copying EJB deployment files to META-INF directory"
- copy %STYEJB_HOME%day21exejb-jar.xml buildejbMETA-INF
- copy %STYEJB_HOME%day21exweblogic-ejb-jar.xml buildejbMETA-INF
- copy %STYEJB_HOME%day21exweblogic-cmp-rdbms-jar.xml buildejbMETA-INF
- rem "Compiling EJB classes and interfaces"
- javac -g -classpath %CLASSPATH%;buildejb -d buildejb course*.java enrollmentcart*.java order*.java orderlineitem*.java signon*.java student*.java studentfacade*.java user*.java adminfacade*.java orderverifier*.java messagesender*.java enrollment*.java mailer*.java
- rem "Creating the ejb-jar file"
- cd buildejb
- jar cv0f tmp_urs.jar META-INF *
- cd ....
- rem "Compiling the container classes"
- java weblogic.ejbc -keepgenerated -g -deprecation buildejbtmp_urs.jar buildurs.jar
- rem "Copying JSP files"
- copy web*.jsp buildweb.
- copy webindex.html buildweb.
- rem "Compiling Web tier files"
- javac -g -d buildwebWEB-INFclasses -classpath %CLASSPATH%;buildejb course*.java enrollmentcart*.java order*.java orderlineitem*.java signon*.java student*.java studentfacade*.java user*.java adminfacade*.java enrollment*.java
- rem "Precompiling JSP files"
- javac -classpath %CLASSPATH%;buildejb; -d buildwebWEB-INFclasses web*.java
- java -classpath %CLASSPATH%;buildwebWEB-INFclasses;buildejb weblogic.jspc -commentary -compileFlags "-g " -g -keepgenerated -d buildprecompiledjsps web*.jsp
- rem "Copying Web deployment descriptors and classes to WEB-INF directory"
- copy web.xml buildwebWEB-INF
- copy weblogic.xml buildwebWEB-INF
- javac -g -d buildwebWEB-INFclasses -classpath %CLASSPATH%;buildejb course*.java enrollmentcart*.java order*.java orderlineitem*.java signon*.java student*.java studentfacade*.java user*.java adminfacade*.java enrollment*.java
- javac -classpath %CLASSPATH%;buildejb; -d buildwebWEB-INFclasses web*.java
- rem "Creating Web Archive"
- cd buildweb
- jar cv0f urs.war *
- cd ....
- copy buildweburs.war build.
- rem "Copying application Deployment Descriptor to META-INF directory"
- copy application.xml buildMETA-INF
- rem "Creating enterprise archive file"
- cd build
- jar cv0f urs.ear urs.jar urs.war META-INF
- cd ..
- rem "Deploying the enterprise archive file"
- copy buildurs.ear %APPLICATIONS%day21ex_urs.ear