Oi pessoal,
Estou escrevendo um script Ant para um projeto e estou tendo o erro abaixo:
build:
[javac] Compiling 263 source files to C:\sandbox2\Java\CS\WEB\trunk\APP\CrewSchedule.Web\build
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\sandbox2\Java\CS\WEB\trunk\APP\CrewSchedule.Web\src\com\all\cs\web\backing\execucao\AcessoMB.java:80: error: cannot access ADFScopeListenerWithExternalContext
[javac] return BindingContext.getCurrent().getCurrentBindingsEntry();
[javac] ^
[javac] class file for oracle.adf.share.ADFScopeListenerWithExternalContext not found
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
Esse é o meu build.xml:
<property name="projectName" value="CrewScheduleWeb" />
<property name="projectExternalName" value="CrewSchedule.Domain" />
<property name="src.dir" location="src" />
<property name="build.dir" location="build" />
<property name="dist.dir" location="dist" />
<property name="dist.lib.dir" location="dist/lib" />
<property name="dist.ear.dir" location="target/ear" />
<property name="dist.ear.lib.dir" location="target/ear/lib" />
<property name="lib.dir" value="../libs" />
<property name="lib.references.dir" value="../libs-reference" />
<property name="external.lib.dir" value="../${projectExternalName}/dist" />
<property name="webfiles.dir" value="public_html" />
<target name="create_dir" depends="clean">
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
<mkdir dir="${dist.lib.dir}" />
<mkdir dir="${dist.ear.dir}" />
<mkdir dir="${dist.ear.lib.dir}" />
</target>
<target name="build" depends="create_dir">
<javac srcdir="${src.dir}" destdir="${build.dir}" encoding="iso-8859-1" source="1.6" target="1.6" includeantruntime="false">
<classpath>
<fileset dir="../.adf" id="adf">
<include name="**/*.*" />
</fileset>
<fileset dir="${external.lib.dir}" id="external">
<include name="**/*.jar" />
</fileset>
<fileset dir="${lib.dir}" id="id">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="war" depends="build">
<mkdir dir="WebContent/WEB-INF" />
<mkdir dir="WebContent/WEB-INF/lib" />
<mkdir dir="WebContent/WEB-INF/classes" />
<copy todir="WebContent/WEB-INF">
<fileset dir="${webfiles.dir}/WEB-INF" includes="web.xml" />
</copy>
<copy todir="${dist.dir}">
<fileset dir="WebContent/WEB-INF/classes">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="WebContent/WEB-INF/lib">
<fileset dir="${lib.references.dir}" includes="/**/*.jar" />
</copy>
<war destfile="${dist.dir}/${projectName}.war" webxml="WebContent/WEB-INF/web.xml" zip64Mode="always">
<fileset dir="WebContent" />
<fileset dir="${webfiles.dir}" />
<classes dir="${build.dir}" />
<lib dir="WebContent/WEB-INF/lib" includes="**/*.jar" />
</war>
</target>
Esse sistema é executado em um Weblogic 11g e hoje os desenvolvedores criam a aplicação (ear) pelo jDeveloper.
Desde já obrigado,
Cesar Sturion