ant compile problem

Posted by senzacionale on Stack Overflow See other posts from Stack Overflow or by senzacionale
Published on 2010-05-14T07:25:23Z Indexed on 2010/05/14 7:34 UTC
Read the original article Hit count: 553

Filed under:

If I start ant compile in JDeveloper all classes are compiled successfully and copied to the classes folder. But if I run ant compile from console then no classes are copied to the classes folder. Does anyone know why? Maybe the problem is with: build.compiler=oracle.ojc.ant.taskdefs.OjcAdapter?

build.properties:

javac.debug=on
oracle.home=C:/Oracle/jdevstudio10133
build.compiler=oracle.ojc.ant.taskdefs.OjcAdapter
output.dir=classes
javac.deprecation=on
javac.nowarn=off

package.name=KIS
dest.dir=C:/Projekti/Projekt ANT/CVS
src.dir=src
view.dir=View
model.dir=Model
modelirc2000.dir=ModelIRC2000

build.xml for compile

<target name="compile" description="Compile Java source files" depends="init">
    <javac destdir="${dest.dir}/${package.name}/${model.dir}/${output.dir}" classpathref="classpath"
           debug="${javac.debug}" nowarn="${javac.nowarn}"
           deprecation="${javac.deprecation}" encoding="Cp1250" source="1.5"
           target="1.5">
      <src path="${dest.dir}/${package.name}/${model.dir}/${src.dir}"/>
      <exclude name="irc/kis/model/dm/entity/common/ZnanjeImplMsgBundle.java/"/>
      <exclude name="META-INF/"/>
      <exclude name="irc/kis/view/"/>
      <exclude name="irc/kis/model/zap/view/vp/"/>
    </javac>
  </target>
  <target name="copy" description="Copy files to output directory"
          depends="init">
    <patternset id="copy.patterns">
      <include name="**/*.gif"/>
      <include name="**/*.jpg"/>
      <include name="**/*.jpeg"/>
      <include name="**/*.png"/>
      <include name="**/*.properties"/>
      <include name="**/*.xml"/>
      <include name="**/*-apf.xml"/>
      <include name="**/*.ejx"/>
      <include name="**/*.xcfg"/>
      <include name="**/*.cpx"/>
      <include name="**/*.dcx"/>
      <include name="**/*.wsdl"/>
      <include name="**/*.ini"/>
      <include name="**/*.tld"/>
      <include name="**/*.tag"/>
      <include name="**/*.jpx"/>
    </patternset>
    <copy todir="${dest.dir}/${package.name}/${model.dir}/${output.dir}">
      <fileset dir="${dest.dir}/${package.name}/${model.dir}/${src.dir}">
        <patternset refid="copy.patterns"/>
      </fileset>
    </copy>
  </target>

© Stack Overflow or respective owner

Related posts about ant