본문 바로가기
FullStack/21. Java

warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

by nakanara 2012. 3. 30.
반응형


Ant로 빌드시 다음의 경고가 나타났다.

warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds


Buildfile: D:\Dev_home\workspace\springapp\build.xml

build:

    [javac] D:\Dev_home\workspace\springapp\build.xml:44: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD SUCCESSFUL

Total time: 262 milliseconds



build.xml 을 다음과 같이 수정

<target name="build" description="Compile main source tree java files">

        <mkdir dir="${build.dir}"/>

        <javac destdir="${build.dir}" source="1.6" target="1.6" debug="true"

               deprecation="false" optimize="false" failonerror="true" includeantruntime="false">

            <src path="${src.dir}"/>

            <classpath refid="master-classpath"/>

        </javac>

    </target>

위 옵션은 ant의 클래스 패스를 클래스패스에 포함시킨다는 내용  false 처리함(default=yes)

반응형