Java - Compile Script - build.cmd 내용

Posted 07 14, 2009 16:17, Filed under: Language/JAVA


@echo off

set PROJECT_HOME=C:\HOMEPAGEwww
set SOURCE_PATH=%PROJECT_HOME%\WebContent\WEB-INF\src
set OUT_PATH=%PROJECT_HOME%\WebContent\WEB-INF\bin
set CLASS_DIR=%PROJECT_HOME%\WebContent\WEB-INF\classes
set CLASS_PATH=%PROJECT_HOME%\lib\antlr-2.7.5H3.jar;%PROJECT_HOME%\lib\spring.jar;%PROJECT_HOME%\lib\tools.jar;%PROJECT_HOME%\lib\servlet.jar;%PROJECT_HOME%\lib\cglib-nodep-2.1.jar;%PROJECT_HOME%\lib\classes12.jar;%PROJECT_HOME%\lib\commons-beanutils.jar;%PROJECT_HOME%\lib\commons-collections-3.2.jar;%PROJECT_HOME%\lib\commons-dbcp-1.2.1.jar;%PROJECT_HOME%\lib\commons-digester-1.8.jar;%PROJECT_HOME%\lib\commons-fileupload-1.1.1.jar;%PROJECT_HOME%\lib\commons-io-1.3.jar;%PROJECT_HOME%\lib\commons-lang-2.2.jar;%PROJECT_HOME%\lib\commons-logging.jar;%PROJECT_HOME%\lib\commons-pool.jar;%PROJECT_HOME%\lib\commons-validator-1.3.1.jar;%PROJECT_HOME%\lib\dom4j-1.4.jar;%PROJECT_HOME%\lib\hibernate3.jar;%PROJECT_HOME%\lib\jstl.jar;%PROJECT_HOME%\lib\jta.jar;%PROJECT_HOME%\lib\k2.jar;%PROJECT_HOME%\lib\log4j-1.2.9.jar;%PROJECT_HOME%\lib\mysql-connector-java-2.0.14-bin.jar;%PROJECT_HOME%\lib\ojdbc14.zip;%PROJECT_HOME%\lib\sitemesh-2.2.1.jar;%PROJECT_HOME%\lib\spring-modules-validation.jar;%PROJECT_HOME%\lib\standard.jar;%PROJECT_HOME%\lib\servlet-api.jar;%PROJECT_HOME%\lib\jsp-api.jar;%OUT_PATH%

rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\advice\*.java

@echo on
javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\dao\*.java
@echo off
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\domain\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\exception\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\service\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\util\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\util\tag\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\util\upload\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\util\filter\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\site\web\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\fredck\FCKeditor\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\fredck\FCKeditor\connector\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\fredck\FCKeditor\tags\*.java
rem javac -classpath %CLASS_PATH% -d %OUT_PATH% %SOURCE_PATH%\com\fredck\FCKeditor\uploader\*.java

rem cd %PROJECT_HOME%\WebContent\WEB-INF\
rem mkdir classes

rem xcopy /e /h /k %OUT_PATH%\* %CLASS_DIR%

rem xcopy /e /h /k %SOURCE_PATH%\log4j.xml %PROJECT_HOME%\WebContent\WEB-INF\classes\

rem xcopy /e /h /k %SOURCE_PATH%\com\site\hbm %PROJECT_HOME%\WebContent\WEB-INF\classes\com\site\hbm

rem xcopy /e /h /k %SOURCE_PATH%\com\site\properties %PROJECT_HOME%\WebContent\WEB-INF\classes\com\site\properties

rem cd %PROJECT_HOME%\WebContent

jar -cvf ..\homepage.war .\*

rem cd ..

※ 위 내용은, 여러 자료를 참고하거나 제가 주관적으로 정리한 것입니다.
   잘못된 정보나 보완이 필요한 부분을, 댓글 또는 메일로 보내주시면 많은 도움이 되겠습니다.
07 14, 2009 16:17 07 14, 2009 16:17


Trackback URL : http://develop.sunshiny.co.kr/trackback/248

Leave a comment
[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다

« Previous : 1 : ... 461 : 462 : 463 : 464 : 465 : 466 : 467 : 468 : 469 : ... 648 : Next »

Recent Posts

  1. HDFS - Python Encoding 오류 처리
  2. HP - Vertica ROS Container 관련 오류...
  3. HDFS - Hive 실행시 System Time 오류
  4. HP - Vertica 사용자 쿼리 이력 테이블...
  5. Client에서 HDFS 환경의 데이터 처리시...

Recent Comments

  1. 안녕하세요^^ 배그핵
  2. 안녕하세요^^ 도움이 되셨다니, 저... sunshiny
  3. 정말 큰 도움이 되었습니다.. 감사합... 사랑은
  4. 네, 안녕하세요. 댓글 남겨 주셔서... sunshiny
  5. 감사합니다 많은 도움 되었습니다!ㅎㅎ 프리시퀸스

Recent Trackbacks

  1. project management project management %M
  2. cabo villas for rent cabo villas for rent %M
  3. buy my house fast buy my house fast %M
  4. buy my house now buy my house now %M
  5. how to sell a house quickly how to sell a house quickly 3 04

Calendar

«   04 2020   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Bookmarks

  1. 위키피디아
  2. MysqlKorea
  3. 오라클 클럽
  4. API - Java
  5. Apache Hadoop API
  6. Apache Software Foundation
  7. HDFS 생태계 솔루션
  8. DNSBL - Spam Database Lookup
  9. Ready System
  10. Solaris Freeware
  11. Linux-Site
  12. 윈디하나의 솔라나라

Site Stats

TOTAL 2902962 HIT
TODAY 355 HIT
YESTERDAY 1312 HIT