buildJBoss.bat
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. rem "Cleaning previous build (if any)"
  2. rmdir /s/q build 
  3. rem "Creating a stating area for the build"
  4. mkdir build buildejb buildejbMETA-INF 
  5. mkdir buildweb buildwebWEB-INF buildwebWEB-INFclasses
  6. mkdir buildMETA-INF
  7. rem "Copying EJB deployment files to META-INF directory"
  8. copy %STYEJB_HOME%day21exejb-jar.xml buildejbMETA-INF
  9. copy %STYEJB_HOME%day21exjboss.xml buildejbMETA-INF
  10. copy %STYEJB_HOME%day21exjbosscmp-jdbc.xml buildejbMETA-INF
  11. rem "Compiling EJB classes and interfaces"
  12. 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
  13. rem "Creating the ejb-jar file"
  14. cd buildejb
  15. jar cv0f tmp_urs.jar META-INF *
  16. cd ....
  17. copy buildejbtmp_urs.jar buildurs.jar
  18. rem "Copying JSP files"
  19. copy web*.jsp buildweb.
  20. copy webindex.html buildweb.
  21. rem "Copying Web deployment descriptors and classes to WEB-INF directory"
  22. copy web.xml buildwebWEB-INF
  23. copy jboss-web.xml buildwebWEB-INF
  24. 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
  25. javac -classpath %CLASSPATH%;buildejb; -d buildwebWEB-INFclasses web*.java
  26. rem  "Creating Web Archive"
  27. cd buildweb 
  28. jar cv0f urs.war *
  29. cd ....
  30. copy buildweburs.war build.
  31. rem "Copying application Deployment Descriptor to META-INF directory"
  32. copy application.xml buildMETA-INF
  33. rem "Creating enterprise archive file"
  34. cd build 
  35. jar cv0f urs.ear urs.jar urs.war META-INF
  36. cd ..
  37. rem "Deploying the enterprise archive file"
  38. copy buildurs.ear  %APPLICATIONS%day21ex_urs.ear