티스토리 뷰
dojo 의 build.bat 파일을 ant Task로 만들어야 했다.
우선 build.bat 파일은 다음과 같다.
java -classpath ../shrinksafe/js.jar;../shrinksafe/shrinksafe.jar org.mozilla.javascript.tools.shell.Main build.js %* @rem java -Xms256m -Xmx256m -classpath ../shrinksafe/js.jar;../shrinksafe/shrinksafe.jar org.mozilla.javascript.tools.shell.Main build.js %*
처음에 그냥 책을 살짝 훑어보고, 이렇게 만들어 봤다.
<java classname="org.mozilla.javascript.tools.shell.Main"> <arg value="build.js"> <classpath>../shrinksafe/js.jar</classpath> <classpath>../shrinksafe/shrinksafe.jar</classpath> <arg value="profileFile=${target.profileFile}"> <arg value="action=clean,release"> </arg> </arg> </arg> </java>
그랬더니, 다음과 같은 에러가 나타났다..
The <path> type doesn't support nested text data ("../shrinksafe/js.jar").
음.. 무슨 근거로 <classpath>를 저렇게 쓴걸까?
다음은, <classpath>에 관하여 책을 좀더 찾아 보고 다음고 같이 고쳐보았다.
<java classname="org.mozilla.javascript.tools.shell.Main"> <classpath path="${dojo.shrinksafe.dir}"> <pathelement location="js.jar"> <pathelement location="shrinksafe.jar"></pathelement> </pathelement> </classpath> <arg value="build.js"> <arg value="profileFile=${target.profileFile}"> <arg value="action=clean,release"> </arg> </arg> </arg> </java>
이번엔 이런 에러메시지가..
"Could not find org.mozilla.javascript.tools.shell.Main. Make sure you have it in your classpath"
음.. 좀더 살펴보니 <fileset>이란 놈도 있어서. 다음과 같이 다시 도전해 보았다.
<java dir="${dojo.buildscripts.dir}" classname="org.mozilla.javascript.tools.shell.Main" fork="true" failonerror="true"> <classpath> <fileset dir="${dojo.shrinksafe.dir}"> <include name="*.jar"></include> </fileset> </classpath> <arg value="build.js"> <arg value="profileFile=${target.profileFile}"> <arg value="action=clean,release"></arg> </arg> </arg> </java>
오.. 돈다 돈다...
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- intellij
- 자바스크립트
- Eclipse
- 리액티브프로그래밍
- 윈도우즈
- 빔
- Node.js
- Git
- unit test
- maven
- console
- Widget
- 커피스크립트
- REACTOR
- tipoftheday
- 자바
- VI
- JavaScript
- Configuration
- 리액터
- Windows
- dojo
- Coffeescript
- React
- gvim
- 스프링인액션
- VIM
- Commonjs
- reactiveprogramming
- Java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함