'Ant'에 해당되는 글 2건

  1. 2010.07.13 ant tomcat service stop, start
  2. 2010.07.06 ant includeantruntime
윈도우 서비스에 등록된 tomcat stop, start 


<target name="tomcat.service.stop" description="Stop the ${service}">
<exec executable="sc.exe">
<arg value="\\SERVER_NAME"/>
<arg value="stop"/>
<arg value="Tomcat6"/>
</exec>
</target>
<target name="tomcat.service.start" description="Start the ${service}">
<exec executable="sc.exe">
<arg value="\\SERVER_NAME"/>
<arg value="start"/>
<arg value="Tomcat6"/>
</exec>
</target>
Posted by [czar]
,

Buildfile: D:\a\build.xml
 
compile:
    [javac] D:\a\build.xml:8: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
 
BUILD SUCCESSFUL
Total time: 0 seconds





includeantruntime="false" 를 넣어주면 된다.

<javac debug="on" destdir="${web.classes.dir}" classpath="${classpath}" deprecation="false" encoding="UTF-8" includeantruntime="false">
   <src path="${src.dir}" />
   <include name="**/*.java" />
  </javac>

Posted by [czar]
,