Netbeans, Ant and nesting build directories

696 views Asked by At

I am having a problem with an Ant project in Netbeans 7.4 . When building a certain web app that i had to create via importing it from a WAR into Netbeans it keeps nesting the output directories in the build directory deeper and deeper.

It happens during the Ant target -copy-webdir . It outputs "x.class omitted as pathtox/x.class" for every file in the build/web directory and creates an even deeper nested set of directories on each build.

Here is a small extract from the project.properties file:

build.classes.dir=${build.web.dir}/WEB-INF/classes
build.classes.excludes=**/*.java,**/*.form
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
build.web.dir=${build.dir}/web
build.web.excludes=${build.classes.excludes}

target -copy-webdir in the nbproject/build-impl.xml:

<target name="-copy-webdir">
    <copy todir="${build.web.dir}">
        <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
    </copy>
    <copy todir="${build.web.dir}/WEB-INF">
        <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
    </copy>
</target>

What am i doing wrong here?

0

There are 0 answers