Hi, I started tutorial about using appengine sdk in gwt project (stockwatcher example).i followed the instruction and changed build.xml file to make them working together,but i'm getting an error in taskdef 'path to gwt not found'.when i hover mouse over yellow triangle it points at the right path,but it seems not see gwt.sdk there.i don't know anything about ant and configuration in build.xml.i read that project hierarchy might cause such problem,so i tried changing the order in every possible way.can someone help me out with this problem?i found older thread about the same issue but the solution points at the tutorial i was using. Thanks, Ania
my build.xml: <?xml version="1.0" encoding="utf-8" ?> <project name="StockWatcher" default="build" basedir="."> <!-- Configure path to GWT SDK --> <property name="gwt.sdk" location="Path to GWT" /> <!-- Configure path to App Engine SDK --> <property name="appengine.sdk" location="Path to App Engine SDK" /> <path id="project.class.path"> <pathelement location="war/WEB-INF/classes"/> <pathelement location="${gwt.sdk}/gwt-user.jar"/> <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/> <!-- Add any additional non-server libs (such as JUnit) --> <fileset dir="war/WEB-INF/lib" includes="**/*.jar"/> </path> <path id="tools.class.path"> <path refid="project.class.path"/> <pathelement location="${appengine.sdk}/lib/appengine-tools- api.jar"/> <fileset dir="${appengine.sdk}/lib/tools"> <include name="**/asm-*.jar"/> <include name="**/datanucleus-enhancer-*.jar"/> </fileset> </path> <target name="libs" description="Copy libs to WEB-INF/lib"> <mkdir dir="war/WEB-INF/lib" /> <copy todir="war/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet.jar" /> <!-- Add any additional server libs that need to be copied --> <copy todir="war/WEB-INF/lib" flatten="true"> <fileset dir="${appengine.sdk}/lib/user" includes="**/*.jar"/ > </copy> </target> <target name="javac" depends="libs" description="Compile java source"> <mkdir dir="war/WEB-INF/classes"/> <javac srcdir="src" includes="**" encoding="utf-8" destdir="war/WEB-INF/classes" source="1.5" target="1.5" nowarn="true" debug="true" debuglevel="lines,vars,source"> <classpath refid="project.class.path"/> </javac> <copy todir="war/WEB-INF/classes"> <fileset dir="src" excludes="**/*.java"/> </copy> <taskdef name="datanucleusenhancer" classpathref="tools.class.path" classname="org.datanucleus.enhancer.tools.EnhancerTask" /> <datanucleusenhancer classpathref="tools.class.path" failonerror="true"> <fileset dir="war/WEB-INF/classes" includes="**/*.class" /> </datanucleusenhancer> </target> <target name="gwtc" depends="javac" description="GWT compile to JavaScript"> <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler"> <classpath> <pathelement location="src"/> <path refid="project.class.path"/> </classpath> <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> <jvmarg value="-Xmx256M"/> <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> <arg value="com.google.gwt.sample.stockwatcher.StockWatcher"/> </java> </target> <target name="devmode" depends="javac" description="Run development mode"> <java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode"> <classpath> <pathelement location="src"/> <path refid="project.class.path"/> <path refid="tools.class.path"/> </classpath> <jvmarg value="-Xmx256M"/> <arg value="-startupUrl"/> <arg value="StockWatcher.html"/> <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> <arg value="-server"/> <arg value="com.google.appengine.tools.development.gwt.AppEngineLauncher"/> <arg value="com.google.gwt.sample.stockwatcher.StockWatcher"/> </java> </target> <target name="javac.tests" depends="javac" description="Compiles test code"> <javac srcdir="test" includes="**" encoding="utf-8" source="1.5" target="1.5" nowarn="true" debug="true" debuglevel="lines,vars,source"> <classpath location="path_to_the_junit_jar"/> <classpath refid="project.class.path"/> </javac> </target> <target name="test.dev" depends="javac.tests" description="Run development mode tests"> <mkdir dir="reports/htmlunit.dev" /> <junit fork="yes" printsummary="yes" haltonfailure="yes"> <jvmarg line="-Xmx256m" /> <sysproperty key="gwt.args" value="-logLevel WARN" /> <sysproperty key="java.awt.headless" value="true" /> <classpath> <pathelement location="src" /> <pathelement location="test" /> <path refid="project.class.path" /> <pathelement location="path_to_the_junit_jar" /> </classpath> <batchtest todir="reports/htmlunit.dev" > <fileset dir="test" > <include name="**/*Test.java" /> </fileset> </batchtest> <formatter type="plain" /> <formatter type="xml" /> </junit> </target> <target name="test.prod" depends="javac.tests" description="Run production mode tests"> <mkdir dir="reports/htmlunit.prod" /> <junit fork="yes" printsummary="yes" haltonfailure="yes"> <jvmarg line="-Xmx256m" /> <sysproperty key="gwt.args" value="-prod -logLevel WARN -out www- test" /> <sysproperty key="java.awt.headless" value="true" /> <classpath> <pathelement location="src" /> <pathelement location="test" /> <path refid="project.class.path" /> <pathelement location="path_to_the_junit_jar" /> </classpath> <batchtest todir="reports/htmlunit.prod" > <fileset dir="test" > <include name="**/*Test.java" /> </fileset> </batchtest> <formatter type="plain" /> <formatter type="xml" /> </junit> </target> <target name="test" description="Run development and production mode tests"> <antcall target="test.dev" /> <antcall target="test.prod" /> </target> <target name="hosted" depends="devmode" description="Run development mode (NOTE: the 'hosted' target is deprecated)" /> <target name="build" depends="gwtc" description="Build this project" /> <target name="war" depends="build" description="Create a war file"> <zip destfile="StockWatcher.war" basedir="war"/> </target> <target name="clean" description="Cleans this project"> <delete dir="war/WEB-INF/classes" failonerror="false" /> <delete dir="war/stockwatcher" failonerror="false" /> </target> </project> -- 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.