<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Slashdev Support Forum &#187; Forum: Java Preprocessor - Recent Posts</title>
		<link>http://forum.slashdev.ca/forum/3</link>
		<description>A place to ask questions about projects and posts on the Slashdev blog.</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Feb 2012 23:56:01 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forum.slashdev.ca/search.php</link>
		</textInput>
		<atom:link href="http://forum.slashdev.ca/rss/forum/3" rel="self" type="application/rss+xml" />

		<item>
			<title>jiggak on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-40</link>
			<pubDate>Wed, 23 Mar 2011 19:02:40 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">40@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;If you surround the literal &#34;xxx&#34; with double quotes string comparison is (*should*) be performed.&#60;/p&#62;
&#60;p&#62;Also to overcome the issue with a property being undefined you don't even need to give it a value in Ant. Something like ACTIVE_PROJECT= would suffice.&#60;/p&#62;
&#60;p&#62;There should be section in the &#60;a href=&#34;http://git.slashdev.ca/javapp/plain/README&#34;&#62;README&#60;/a&#62; regarding the types of comparisons available and the syntax for the literal values inside expressions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-39</link>
			<pubDate>Wed, 23 Mar 2011 15:13:32 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">39@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Great, Thanks&#60;br /&#62;
I resolved the PROJ1 and PROJ2 by defining a seperate control property ACTIVE_PROJECT.&#60;br /&#62;
I also discovered that using the #if ${prop} == xxx, that xxx must be a numeric value.&#60;br /&#62;
if you make changes in the future, a string based comparison would be useful too.&#60;/p&#62;
&#60;p&#62;ACTIVE_PROJECT=MyProject vs. ACTIVE_PROJECT=1234&#60;/p&#62;
&#60;p&#62;Thanks for the help, I have a working ant script and controls now
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-38</link>
			<pubDate>Tue, 22 Mar 2011 16:30:30 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">38@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;The behavior with PROJ1 and PROJ2 properties is most certainly a bug (or more appropriately something I didn't consider closely enough while developing javapp).&#60;/p&#62;
&#60;p&#62;Regarding the property changes in the build.xml file not causing a re-compile, yes I think this is really better left up to the ant script itself. For example use the &#38;lt;uptodate&#38;gt; task to check if build related files are newer than pre-processor output.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;target name=&#38;quot;clean&#38;quot; if=&#38;quot;buildxml_is_newer&#38;quot;&#38;gt;
   &#38;lt;delete dir=&#38;quot;staging&#38;quot; /&#38;gt;
&#38;lt;/target&#38;gt;

&#38;lt;target name=&#38;quot;preprocess&#38;quot; depends=&#38;quot;check-build-files,clean&#38;quot;&#38;gt;
   ...
&#38;lt;/target&#38;gt;

&#38;lt;target name=&#38;quot;check-build-files&#38;quot;&#38;gt;
   &#38;lt;uptodate srcfile=&#38;quot;build.xml&#38;quot; property=&#38;quot;buildxml_is_newer&#38;quot;&#38;gt;
      &#38;lt;srcfiles dir=&#38;quot;staging&#38;quot; includes=&#38;quot;**/*&#38;quot; /&#38;gt;
   &#38;lt;/uptodate&#38;gt;
&#38;lt;/target&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-37</link>
			<pubDate>Mon, 21 Mar 2011 08:36:57 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">37@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I found another oddity - perhaps you could comment on.&#60;/p&#62;
&#60;p&#62;If I change the property definitions in ant's build.xml file, this does not cause a new preprocess to occur, I believe because the src files did not change.  That it turn does not cause a recompile of the files.&#60;br /&#62;
The result is the build does not match the required definitions.&#60;/p&#62;
&#60;p&#62;If I clean and and run again, I get what I expected.&#60;/p&#62;
&#60;p&#62;Is there a way to force the preprocess to occurs based on the change of the build.xml file? - This may be more of an ant question than javapp question.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Adam
&#60;/p&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-36</link>
			<pubDate>Mon, 21 Mar 2011 08:04:00 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">36@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Success - the fundamental problem was the //#ifdef, this does not seemed to be supported.  I changed it to //#if defined(PROJ1) and that works&#60;br /&#62;
This was an assumption on my part - I'll read the syntax doc a little closer.&#60;/p&#62;
&#60;p&#62;One oddity:&#60;br /&#62;
If I defined PROJ1 and PROJ2 in build.xml - the preprocess works, PROJ1 is printed out&#60;/p&#62;
&#60;p&#62;If I defined ONLY PROJ1 - it fails, stating: property 'PROJ2' not defined&#60;/p&#62;
&#60;p&#62;If I ONLY define PROJ2 - it works, PROJ2 is printed out&#60;/p&#62;
&#60;p&#62;Am I missing something here - It seems the code would be VERY dependant on how the&#60;br /&#62;
&#34;if defined() is used/ordered and how the properties are declared.&#60;/p&#62;
&#60;p&#62;If I defined only PROJ1, I would expect the PROJ2 to be preprocessed out and no error to be thrown?&#60;/p&#62;
&#60;p&#62;Thanks for the help. I appreciate it.&#60;br /&#62;
Adam
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-35</link>
			<pubDate>Fri, 18 Mar 2011 12:55:31 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">35@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Strange. I don't seem to have the same problem in my tests. I did however get an error due to the PROJ2 property being undefined. Here is my test files:&#60;/p&#62;
&#60;p&#62;# build.xml&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;project default=&#38;quot;preprocess&#38;quot;&#38;gt;
   &#38;lt;taskdef resource=&#38;quot;javapp-defs.xml&#38;quot; /&#38;gt;

   &#38;lt;target name=&#38;quot;preprocess&#38;quot;&#38;gt;
      &#38;lt;javapp destdir=&#38;quot;staging&#38;quot; prefix=&#38;quot;//#&#38;quot;&#38;gt;
         &#38;lt;fileset dir=&#38;quot;src&#38;quot; includes=&#38;quot;**/*.java&#38;quot; /&#38;gt;
         &#38;lt;property name=&#38;quot;PROJ1&#38;quot; value=&#38;quot;SC650&#38;quot; /&#38;gt;
         &#38;lt;property name=&#38;quot;PROJ2&#38;quot; value=&#38;quot;SC750&#38;quot; /&#38;gt;
      &#38;lt;/javapp&#38;gt;
   &#38;lt;/target&#38;gt;
&#38;lt;/project&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;# HelloWorld.java&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;public class HelloWorld
{
   public static void main(String args[])
   {
      //#if defined(PROJ1)
      System.out.println(&#38;quot;Hello Project 1: ${PROJ1}&#38;quot;);
      //#else
      System.out.println(&#38;quot;Hello Project 2: ${PROJ2}&#38;quot;);
      //#endif
   }
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-34</link>
			<pubDate>Fri, 18 Mar 2011 12:38:53 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">34@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I also added this to supress an ant warning: includeantruntime=&#34;false&#34;&#60;br /&#62;
and the dependancy for preprocess&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;compile&#34; depends=&#34;preprocess&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;mkdir dir=&#34;${classes.dir}&#34;/&#38;gt;&#60;br /&#62;
        &#38;lt;javac srcdir=&#34;${src.dir}&#34; destdir=&#34;${classes.dir}&#34; includeantruntime=&#34;false&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-33</link>
			<pubDate>Fri, 18 Mar 2011 12:36:20 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">33@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Here you go&#60;/p&#62;
&#60;p&#62;public class HelloWorld&#60;br /&#62;
{&#60;br /&#62;
    public static void main(String args[])&#60;br /&#62;
    {&#60;br /&#62;
	//#if defined(PROJ1)  &#38;lt;&#38;lt;fails right here&#60;br /&#62;
	System.out.println(&#34;Hello Project 1: ${PROJ1}&#34;);&#60;br /&#62;
	//#else&#60;br /&#62;
	System.out.println(&#34;Hello Project 2: ${PROJ2}&#34;);&#60;br /&#62;
	//#endif&#60;br /&#62;
    }&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-32</link>
			<pubDate>Fri, 18 Mar 2011 12:24:24 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">32@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Can you post your .java file as well?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-31</link>
			<pubDate>Fri, 18 Mar 2011 08:50:05 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">31@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;OK, I built a simple ant build.xml file and inserted the referenced code from the slashdev website (At end of this post), but Get an error - Not sure what I am missing here.&#60;br /&#62;
I can call any just fine and compile java directly - just failing to successfully preprocess&#60;br /&#62;
Any input would be greatly appreciated.&#60;br /&#62;
Adam&#60;/p&#62;
&#60;p&#62;preprocess:&#60;br /&#62;
BUILD FAILED&#60;br /&#62;
C:\FOUO_SC650\java\build.xml:21: 'HelloWorld.java', line 5, char 6: Token not recognised in state 'ifcond'&#60;/p&#62;
&#60;p&#62;complete build.xml file&#60;br /&#62;
&#38;lt;project name=&#34;HelloWorld&#34; basedir=&#34;.&#34; default=&#34;main&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;property name=&#34;src.dir&#34;     value=&#34;src&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;property name=&#34;build.dir&#34;   value=&#34;build&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;property name=&#34;classes.dir&#34; value=&#34;${build.dir}/classes&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;property name=&#34;jar.dir&#34;     value=&#34;${build.dir}/jar&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;property name=&#34;main-class&#34;  value=&#34;HelloWorld&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;clean&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;delete dir=&#34;${build.dir}&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;taskdef resource=&#34;javapp-defs.xml&#34; /&#38;gt;&#60;br /&#62;
    &#38;lt;property name=&#34;os_version&#34; value=&#34;4.2&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;preprocess&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;javapp destdir=&#34;build\staging&#34; prefix=&#34;//#&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;fileset dir=&#34;src&#34; includes=&#34;**/*.java&#34; /&#38;gt;&#60;br /&#62;
            &#38;lt;property name=&#34;PROJ1&#34; value=&#34;SC650&#34; /&#38;gt;&#60;br /&#62;
        &#38;lt;/javapp&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;compile&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;mkdir dir=&#34;${classes.dir}&#34;/&#38;gt;&#60;br /&#62;
        &#38;lt;javac srcdir=&#34;${src.dir}&#34; destdir=&#34;${classes.dir}&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;jar&#34; depends=&#34;compile&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;mkdir dir=&#34;${jar.dir}&#34;/&#38;gt;&#60;br /&#62;
        &#38;lt;jar destfile=&#34;${jar.dir}/${ant.project.name}.jar&#34; basedir=&#34;${classes.dir}&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;manifest&#38;gt;&#60;br /&#62;
                &#38;lt;attribute name=&#34;Main-Class&#34; value=&#34;${main-class}&#34;/&#38;gt;&#60;br /&#62;
            &#38;lt;/manifest&#38;gt;&#60;br /&#62;
        &#38;lt;/jar&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;run&#34; depends=&#34;jar&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;java jar=&#34;${jar.dir}/${ant.project.name}.jar&#34; fork=&#34;true&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;clean-build&#34; depends=&#34;clean,jar&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;main&#34; depends=&#34;clean,run&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/project&#38;gt;&#60;br /&#62;
&#38;lt;project name=&#34;HelloWorld&#34; basedir=&#34;.&#34; default=&#34;main&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;property name=&#34;src.dir&#34;     value=&#34;src&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;property name=&#34;build.dir&#34;   value=&#34;build&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;property name=&#34;classes.dir&#34; value=&#34;${build.dir}/classes&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;property name=&#34;jar.dir&#34;     value=&#34;${build.dir}/jar&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;property name=&#34;main-class&#34;  value=&#34;HelloWorld&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;clean&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;delete dir=&#34;${build.dir}&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;taskdef resource=&#34;javapp-defs.xml&#34; /&#38;gt;&#60;br /&#62;
    &#38;lt;property name=&#34;os_version&#34; value=&#34;4.2&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;preprocess&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;javapp destdir=&#34;build\staging&#34; prefix=&#34;//#&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;fileset dir=&#34;src&#34; includes=&#34;**/*.java&#34; /&#38;gt;&#60;br /&#62;
            &#38;lt;property name=&#34;PROJ1&#34; value=&#34;SC650&#34; /&#38;gt;&#60;br /&#62;
        &#38;lt;/javapp&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;compile&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;mkdir dir=&#34;${classes.dir}&#34;/&#38;gt;&#60;br /&#62;
        &#38;lt;javac srcdir=&#34;${src.dir}&#34; destdir=&#34;${classes.dir}&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;jar&#34; depends=&#34;compile&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;mkdir dir=&#34;${jar.dir}&#34;/&#38;gt;&#60;br /&#62;
        &#38;lt;jar destfile=&#34;${jar.dir}/${ant.project.name}.jar&#34; basedir=&#34;${classes.dir}&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;manifest&#38;gt;&#60;br /&#62;
                &#38;lt;attribute name=&#34;Main-Class&#34; value=&#34;${main-class}&#34;/&#38;gt;&#60;br /&#62;
            &#38;lt;/manifest&#38;gt;&#60;br /&#62;
        &#38;lt;/jar&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;run&#34; depends=&#34;jar&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;java jar=&#34;${jar.dir}/${ant.project.name}.jar&#34; fork=&#34;true&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;clean-build&#34; depends=&#34;clean,jar&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;target name=&#34;main&#34; depends=&#34;clean,run&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/project&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-30</link>
			<pubDate>Thu, 17 Mar 2011 14:05:55 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">30@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I'm afraid there is currently no way to invoke this from the command line without using Ant. You can find some sample Ant scripts &#60;a href=&#34;http://www.slashdev.ca/javapp/&#34;&#62;here&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-29</link>
			<pubDate>Thu, 17 Mar 2011 09:51:34 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">29@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I think I just need how to load the xml definition files that has the preprocessing info and defines and the syntax for the input and output java files
&#60;/p&#62;</description>
		</item>
		<item>
			<title>abell@safenet-inc.com on "How to invoke the preprocessor"</title>
			<link>http://forum.slashdev.ca/topic/9#post-28</link>
			<pubDate>Thu, 17 Mar 2011 08:53:15 +0000</pubDate>
			<dc:creator>abell@safenet-inc.com</dc:creator>
			<guid isPermaLink="false">28@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I downloaded then javapp.zip file, extracted and have the jar.&#60;br /&#62;
I also have a verysimple javac HelloWorls.java ready to test.&#60;br /&#62;
I can not find exactly how to use this wonderful tool - I am not using ANT at the moment.  Can anyone point me to a list of instructions on what to do to invoke the preprocessor from the command line?&#60;br /&#62;
Thanks,&#60;br /&#62;
Adam
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Cannot get javaPP to work"</title>
			<link>http://forum.slashdev.ca/topic/6#post-18</link>
			<pubDate>Mon, 28 Jun 2010 20:22:31 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">18@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Good to hear you got it working.&#60;/p&#62;
&#60;p&#62;Currently there isn't any sort of support for comments in the pre-processor grammar or expressions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Reza on "Cannot get javaPP to work"</title>
			<link>http://forum.slashdev.ca/topic/6#post-17</link>
			<pubDate>Mon, 28 Jun 2010 19:10:44 +0000</pubDate>
			<dc:creator>Reza</dc:creator>
			<guid isPermaLink="false">17@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;JDK 1.6 works. &#60;/p&#62;
&#60;p&#62;A minor thing I noticed (that maybe you are already aware of):&#60;/p&#62;
&#60;p&#62;//#if ${USEROBJ_ASM_ELEMENT_SIZE} == 4&#60;br /&#62;
System.err.println(&#34;4 &#34;);&#60;br /&#62;
//#else&#60;br /&#62;
System.err.println(&#34;no 4 &#34;);&#60;br /&#62;
//#endif&#60;/p&#62;
&#60;p&#62;is good.&#60;/p&#62;
&#60;p&#62;//#if ${USEROBJ_ASM_ELEMENT_SIZE} == 4 /* test */&#60;br /&#62;
System.err.println(&#34;4 &#34;);&#60;br /&#62;
//#else&#60;br /&#62;
System.err.println(&#34;no 4 &#34;);&#60;br /&#62;
//#endif&#60;/p&#62;
&#60;p&#62;gives this error:&#60;/p&#62;
&#60;p&#62;C:\Projects\Application\v1.0\System&#38;gt;ant preprocess&#60;br /&#62;
Buildfile: C:\Projects\Application\v1.0\System\build.xml&#60;/p&#62;
&#60;p&#62;preprocess:&#60;/p&#62;
&#60;p&#62;BUILD FAILED&#60;br /&#62;
C:\Projects\Application\v1.0\System\build.xml:95: 'CUserobj.java',&#60;br /&#62;
 line 685, char 44: Token not recognised in state 'ifcond'&#60;/p&#62;
&#60;p&#62;Total time: 2 seconds&#60;br /&#62;
C:\Projects\Application\v1.0\System&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Cannot get javaPP to work"</title>
			<link>http://forum.slashdev.ca/topic/6#post-16</link>
			<pubDate>Thu, 24 Jun 2010 22:36:17 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">16@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;You don't need to install jython (it's bundled into javapp.jar) but it also &#34;shouldn't&#34; hurt if it is installed.&#60;/p&#62;
&#60;p&#62;I might have compiled javapp with JDK 1.6 (I don't remember). Is it possible for you to upgrade the java 1.6 and try again? If not, let me know. I should be able to recompile javapp against java 1.5.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Reza on "Cannot get javaPP to work"</title>
			<link>http://forum.slashdev.ca/topic/6#post-15</link>
			<pubDate>Thu, 24 Jun 2010 12:51:09 +0000</pubDate>
			<dc:creator>Reza</dc:creator>
			<guid isPermaLink="false">15@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I upgraded my ant to version 1.8.1 from binary distribution and added javapp.jar (extracted from javapp-0.4.zip) under /lib directory. I installed jython using jython_installer-2.5.0.jar under my jdk1.5.0_05. I added the following lines to my build.xml:&#60;/p&#62;
&#60;p&#62;&#38;lt;?xml version=&#34;1.0&#34; standalone=&#34;yes&#34;?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;project name=&#34;Application&#34; default=&#34;compile&#34; basedir=&#34;.&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;...&#60;br /&#62;
	&#38;lt;!-- to use javaPP --&#38;gt;&#60;br /&#62;
	&#38;lt;taskdef resource=&#34;javapp-defs.xml&#34; /&#38;gt;&#60;br /&#62;
...&#60;/p&#62;
&#60;p&#62;	&#38;lt;target name=&#34;preprocess&#34;&#38;gt;&#60;br /&#62;
		&#38;lt;javapp destdir=&#34;staging&#34; prefix=&#34;//#&#34;&#38;gt;&#60;br /&#62;
			&#38;lt;fileset dir=&#34;src&#34; includes=&#34;**/*.java&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;/javapp&#38;gt;&#60;br /&#62;
	&#38;lt;/target&#38;gt;&#60;/p&#62;
&#60;p&#62;...&#60;/p&#62;
&#60;p&#62;I typed ant preprocess and received the following error message:&#60;/p&#62;
&#60;p&#62;BUILD FAILED&#60;br /&#62;
C:\Projects\R&#38;amp;D\Sole\Application\v1.0\System\build.xml:5: java.lang.UnsupportedC&#60;br /&#62;
lassVersionError: Bad version number in .class file&#60;br /&#62;
        at java.lang.ClassLoader.defineClass1(Native Method)&#60;br /&#62;
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)&#60;br /&#62;
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12&#60;br /&#62;
4)&#60;br /&#62;
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)&#60;br /&#62;
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)&#60;br /&#62;
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)&#60;br /&#62;
        at java.security.AccessController.doPrivileged(Native Method)&#60;br /&#62;
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)&#60;br /&#62;
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)&#60;br /&#62;
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)&#60;br /&#62;
        at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java&#60;br /&#62;
:1383)&#60;br /&#62;
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:106&#60;br /&#62;
0)&#60;br /&#62;
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)&#60;br /&#62;
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)&#60;br /&#62;
        at java.lang.Class.forName0(Native Method)&#60;br /&#62;
        at java.lang.Class.forName(Class.java:242)&#60;br /&#62;
        at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:594)&#60;/p&#62;
&#60;p&#62;        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:239)&#60;br /&#62;
        at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:177)&#60;br /&#62;
        at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:443)&#60;br /&#62;
        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:292)&#60;br /&#62;
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)&#60;br /&#62;
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#60;br /&#62;
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.&#60;br /&#62;
java:39)&#60;br /&#62;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces&#60;br /&#62;
sorImpl.java:25)&#60;br /&#62;
        at java.lang.reflect.Method.invoke(Method.java:585)&#60;br /&#62;
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav&#60;br /&#62;
a:106)&#60;br /&#62;
        at org.apache.tools.ant.Task.perform(Task.java:348)&#60;br /&#62;
        at org.apache.tools.ant.Target.execute(Target.java:390)&#60;br /&#62;
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:&#60;br /&#62;
179)&#60;br /&#62;
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav&#60;br /&#62;
a:82)&#60;br /&#62;
        at org.apache.tools.ant.Main.runBuild(Main.java:786)&#60;br /&#62;
        at org.apache.tools.ant.Main.startAnt(Main.java:218)&#60;br /&#62;
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)&#60;br /&#62;
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)&#60;/p&#62;
&#60;p&#62;Total time: 0 seconds&#60;/p&#62;
&#60;p&#62;Any idea?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Reza.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

