Hey all,
GXP looks great and I've just started checking it out, thou I'm not seeing any .java files generated. I'm trying to use it via maven and the antrun plugin and have my in my ant script:
<taskdef name="gxpc" classname="com.google.gxp.compiler.ant.GxpcTask"
classpathref="maven.compile.classpath"/>
<gxpc srcdir="src/main/gxp"
srcpaths="src/main/gxp"
destdir="target/java"
target="test.messages"/>
My GXP file is in src/main/gxp/test/HelloWorld.gxp and contains:
<!DOCTYPE gxp:template SYSTEM "
http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent">
<gxp:template name='test.HelloWorld'
xmlns='
http://www.w3.org/1999/xhtml'
xmlns:gxp='
http://google.com/2001/gxp'>
Hello World!
</gxp:template>
When I run maven I see:
perelandra-2:gxp amrk$ mvn generate-sources
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building gxp
[INFO] task-segment: [generate-sources]
[INFO] ------------------------------------------------------------------------
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
src/main/gxp/test/HelloWorld.gxp:4:54:4:54: unextractable text
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sat Aug 02 23:48:12 NZST 2008
[INFO] Final Memory: 4M/11M
[INFO] ------------------------------------------------------------------------
I don't see any .java files generated in the target/java directory, thou I do see target/java/test/messages_en.properties:
# Message Translations File for Java
# project=AdWordsSelect
# language=en-US
Does "unextractable text" mean I have something wrong in the template, and thus why I'm not seeing a .java file? The same GXP file seems to work fine when I run the test target of the gxp repository thou.
Am I missing something?
--
"It is easier to optimize correct code than to correct optimized code." -- Bill Harlan