SEARCH
TOOLBOX
LANGUAGES
Ant

Ant

From Chaehyun

Revision as of 04:15, 2 December 2011 by Xlos (Talk | contribs)
Jump to: navigation, search
  • Cause: Could not load a dependent class com/jcraft/jsch/LoggerIt is not enough to have Ant's optional JARs 메시지가 나올 경우
    • http://www.jcraft.com/jsch/ 에서 jsch-0.1.45.jar 파일을 다운 받고
    • D:\eclipse\plugins\org.apache.ant_1.8.2.v20110505-1300\lib 에 복사
    • eclipse에서 windows - preference - ant - ant home에 추가
  • scp 관련
  • sample xml
<?xml version="1.0"?>
<project name="XlosAnt" default="jar" basedir="." >
 <property name="src.dir" value="${basedir}/src" />
 <property name="classes.dir" value="${basedir}/bin" />
 <property name="jar.dir" value="${basedir}/dist" />

<target name="dist" depends="jar">
    <scp file="${jar.dir}/xlos.jar"  trust="true" todir="hdfs:****@150.23.23.150:/home/hdfs/users/chaehyun" />
</target>
 
 <target name="compile" >
  <javac srcdir="${src.dir}" destdir="${classes.dir}" />
 </target>
  
 <target name="jar" depends="compile">
  <jar jarfile="${jar.dir}/xlos.jar" 
       basedir="${classes.dir}" 
       includes="**/*.class" />
 </target> 
 
 <target name="clean" >
  <delete dir="${classes.dir}/classes/*" />
  <delete dir="${jar.dir}/jar/*" />
  <delete dir="${javadoc.dir}/doc/*" />
 </target>
</project>
Retrieved from "http://chaehyun.kr/w/Ant"