[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I setup sablecc-anttask?



Steve Kelem wrote:
I have sableCC 2.18.1, and I'm trying to get the anttask to work.
I created sablecc-anttask.jar and moved it into $ANT_HOME/lib.

My build.xml file has the following:
  <target name="parser.sourcecode" depends="init"
   description="build parser sourcecode">
     <sablecc src="${pre.dir}" outputdirectory="${gensrc.dir}">
        <include name="idl-grammar.scc"/>
     </sablecc>
  </target>

I get the message:
parser.sourcecode:

BUILD FAILED
file:c:/home/kelem/src/java/acad/build.xml:139: Could not create task or type of type: sablecc.

[...]


What am I doing wrong?


sablecc-anttask.jar must be in CLASSPATH before invoking ANT.

*) add sablecc-anttaks.jar to your CLASSPATH manually before running ant
or
*) make sure all jar files from $ANT_HOME/lib are added automatically by the ant script prior to the Java ANT invocation.


Hth,
Mariusz