나의 성장과정  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
오늘 배운것

eclipse로 개발중인데,, properties에서 설정한 classpath가 안먹히는 것이다.. 원인은 알 수없고,
급한 일정에,, ant로 강제로 컴파일하고, jar까지 만들게 만들었다.

그중 새로 배운 것들..

컴파일 할때

<property name="project.dir" value="D:\Projects\JavaProjects\프로젝트폴더" />
 <property name="src.dir"    value="${project.dir}\src\java"/>
 <property name="temp.class.dir"   value="D:\makeToJar"/>
 <property name="tomcat.home"  value="C:\Apache Software Foundation\Tomcat 5.5" />


<path id="compile.classpath" >
     <fileset dir="${project.dir}\WebRoot\WEB-INF\lib" >
      <include name="*.jar" />
     </fileset>  
  <fileset dir="${tomcat.home}\common\lib">
   <include name="*.jar"/>
  </fileset>
 </path>

<target name="compileToClass" >
        <javac srcdir="${src.dir}"
                  destdir="${temp.class.dir}"
                  debug="true"
                  debuglevel="source,lines,vars"  
                  encoding="UTF-8"
        <classpath refid="compile.classpath"/>
  </javac>
</target>

* 사실,, 빨간폰트의 attribute의 특성은  정확히  모르겠다... 대강~ 감으로만..
   다른 분이 만들어놓은것가져와서 내 프로젝트에 맞게 샤샥 바꿨다. -_- 집에가서 ant책 읽어 봐야 겠다.

target들 실행시키도록 할때

<project name="My Project" default="exeAll" >   
.....

<target name="exeAll">
  <antcall target="compileToClass"/>
  <antcall target="copyToTLD"/>
  <antcall target="jarForProject"/>
  <antcall target="moveToLibary"/>
 </target>


BLOG main image
Simple is beatiful!
 Notice
 Category
분류 전체보기 (755)
전직 (0)
일상 (7)
진행중 (6)
3Fs (14)
미정 (3)
Serendipitous! (6)
지르자 : 맥북 (5)
(5)
FaceBook (3)
 TAGS
접근지정자 사파리 JavaScript JS CP1215 URL URLConnection Eclipse 커피 laserjet primitive Debug DOM HP Java color 네트워크 자바스크립트 Safari tomcat
 Calendar
«   2025/07   »
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
 Recent Entries
 Recent Comments
 Archive
 Link Site
상상할 수 있는 힘이 ..
즐겁게살자
인생의 소중한 꿈
{fly to the ocean.com}
누노의 컴퓨토피아
한RSS
[지인]I can\'t stop. Love. Lo…
[원츄]OK 괜찮아 다 잘 될거야
[원츄]애자일 이야기
[원츄]IBM Developerworks
 Visitor Statistics
Total :
Today :
Yesterday :
rss