Hello, There is a problem with Ant buildfile for the GWT project from
me.
I do always first "clean" then "war". The javac in "war" doesn't work
any more...
The build always failed.
it shows always the errors as "10: package javax.ejb does not exist"

The configuration of my eclipse is:
eclipse indigo 3.7
The runtime in Ant:  Apache Ant 1.8.2 Global Entries: jdk1.6.0_24/lib/
tools.jar
The JRE Library for the java buildpath of my project is jre_1.6.0_22

my Build File looks like:

------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<project name="HLDB_GUI_DEV" default="build" basedir=".">
  <!-- Configure path to GWT SDK -->
  <!--  fast compile! -->
  <property name="gwt.sdk" location="C:\Entwicklung\gwt-2.3.0" />
  <!--property name="gwt.sdk" location="C:\Entwicklung\gwt-2.0.3" /-->
  <path id="project.class.path">
    <pathelement location="WebContent/WEB-INF/classes"/>
    <pathelement location="${gwt.sdk}/gwt-user.jar"/>
        <pathelement location="${gwt.sdk}/gwtent.jar"/>
        <pathelement location="${gwt.sdk}/gwt-servlet-deps.jar"/>
    <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/>
    <!-- Add any additional non-server libs (such as JUnit) -->
    <fileset dir="WebContent/WEB-INF/lib" includes="**/*.jar"/>
        <!--pathelement location="../HLDB_GUI.jar"/-->
  </path>

        <target name="build" depends="gwtc" description="Build this project" /
>

        <target name="libs" description="Copy libs to WEB-INF/lib">
                <mkdir dir="WebContent/WEB-INF/lib" />
                <copy todir="WebContent/WEB-INF/lib" file="${gwt.sdk}/gwt-
servlet.jar" />
                <!-- Add any additional server libs that need to be copied -->
        </target>

        <target name="javac" depends="copy" description="Compile java
source">
    <mkdir dir="WebContent/WEB-INF/classes"/>
    <javac srcdir="WebContent/WEB-INF/src" includes="**"
encoding="utf-8"
        destdir="WebContent/WEB-INF/classes" includeantruntime="true"
        source="1.5" target="1.5" nowarn="true"
        debug="true" debuglevel="lines,vars,source">
        <classpath refid="project.class.path"/>
    </javac>
    <copy todir="WebContent/WEB-INF/classes">
      <fileset dir="WebContent/WEB-INF/src" excludes="**/*.java"/>
    </copy>
  </target>


  <target name="gwtc" depends="javac" description="GWT compile to
JavaScript">
        <!--copy todir="WebContent/WEB-INF/lib/de/bmw/ei221/hldb/ejb">
           <fileset dir="WebContent/WEB-INF/classes/de/bmw/ei221/hldb/ejb/"/>
        </copy-->
        <java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
      <classpath>
        <pathelement location="WebContent/WEB-INF/src"/>
        <path refid="project.class.path"/>
      </classpath>
      <!-- add jvmarg -Xss16M or similar if you see a
StackOverflowError -->
      <!--jvmarg value="-Xmx256M"/-->
                <jvmarg value="-Xmx512M"/>
      <!-- Additional arguments like -style PRETTY or -logLevel DEBUG--
>
      <!--arg value="-logLevel"/>
      <arg value="ERROR"/-->
      <arg value="de.bmw.hldb.gui.HLDB_GUI"/>
          <!-- Save time while compiling -->
          <arg value="-draftCompile"/>
          <arg value="-localWorkers"/>
          <arg value="2"/>
          <arg value="-style"/>
          <arg value="PRETTY"/>
          <!-- Save time while compiling -->
    </java>
        <copy todir="WebContent/gui">
            <fileset dir="war/gui"/>
        </copy>
  </target>

        <target name="copy" depends="libs" description="Copy required sources
form other project">
                <!--copy todir="WebContent/WEB-INF/src/de/bmw/hldb/ejb/impl/et">
                    <fileset 
dir="../HLDB_beans/ejbModule/de/bmw/hldb/ejb/impl/et"/
>
                </copy>
                <copy todir="WebContent/WEB-INF/src/de/bmw/hldb/ejb/impl/
interfaces">
                                    <fileset 
dir="../HLDB_beans/ejbModule/de/bmw/hldb/ejb/impl/
interfaces"/>
                </copy-->
        </target>

  <target name="hosted" depends="javac" description="Run hosted mode">
    <java failonerror="true" fork="true"
classname="com.google.gwt.dev.DevMode">
      <classpath>
        <pathelement location="WebContent/WEB-INF/src"/>
        <path refid="project.class.path"/>
      </classpath>
      <jvmarg value="-Xmx256M"/>
       <!-- Additional arguments like -style PRETTY or -logLevel
DEBUG-->
          <arg value="-noserver"/>
      <arg value="-startupUrl"/>
      <arg value="http://localhost:8080/index.html"/>
      <arg value="-logLevel"/>
      <arg value="INFO"/>
      <arg value="de.bmw.hldb.gui.HLDB_GUI"/>
    </java>
  </target>

  <!--target name="WebAppCreator" depends="libs" description="Generate
eclipse project">
    <java failonerror="true" fork="true"
classname="com.google.gwt.user.tools.WebAppCreator">
      <classpath>
        <path refid="project.class.path"/>
      </classpath>
      <arg value="-XonlyEclipse"/>
      <arg value="-ignore"/>
       <arg value="de.bmw.hldb.gui.HLDB_GUI"/>
    </java>
  </target-->

  <target name="war" depends="build" description="Create a war file">
    <!--zip destfile="C:\Sun\SDK\domains\domain1\autodeploy
\HLDB_GUI.war" basedir="C:\Entwicklung\workspace\HLDB_GUI
\WebContent"/-->
    <!-- Save time while compiling -->
    <zip destfile="C:\Sun\SDK\domains\domain1\autodeploy\HLDB_GUI.war"
basedir="C:\Entwicklung\workspace\HLDB_GUI\WebContent" update="true"
compress="false"/>
    <!-- Save time while compiling -->
  </target>

  <target name="clean" description="Cleans this project">
    <delete dir="WebContent/WEB-INF/classes" failonerror="false" />
        <delete dir="war" failonerror="false" />
  </target>

</project>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Can anyone help me? This Problem has tormented me many days....
Thanks very much!!!

Su



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to