ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Hensh" <he...@math.msu.edu>
Subject <NetRexxC> vs. <script>
Date Mon, 29 Jan 2001 04:41:29 GMT
Hello,

I'm new to Ant (and to this list). I've searched the mail archives but I
couldn't find many references to NetRexxC. Can anyone explain why the first
compile is successful but the second fails?

BTW, what the heck does "messages should have been provided." mean? Does it
mean that I forgot to supply some info?

The precise output from each run is included at the end of the file.

thanks
ricky



ant local		<!-- 'hello' -->

ant main		<!-- BUILD FAILED

	E:\Script\local\netrexx\build.xml:16: Compile failed, messages should have
been
	provided. -->


hello.nrx:
	say 'hello'

build.xml:
<?xml version="1.0"?>

<project name="compile_nrx" default="main">

  <target name="init">
    <tstamp/>
    <mkdir dir="classes"/>
    <property name="dest" value="classes"/>
    <property name="src" value="scripts"/>
  </target>

    <target name="main" depends="init">
    <netrexxc srcDir="${src}" destDir="${dest}"
    comments="true" crossref="false" replace="true" keep="true" />
    </target>

  <target name="local">
    <script language="netrexx"><![CDATA[

    say 'Hello'

    ]]></script>
  </target>

</project>


Here is the exact command line output:

E:\Script\local\netrexx>ant -verbose local
Ant version 1.2 compiled on October 24 2000

Searching for build.xml ...
Searching in E:\Script\local\netrexx
Buildfile: E:\Script\local\netrexx\build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
Project base dir set to: E:\Script\local\netrexx
Build sequence for target `local' is [local]
Complete build sequence is [local, init, main]
Hello

BUILD SUCCESSFUL

Total time: 2 seconds
E:\Script\local\netrexx>ant -verbose
Ant version 1.2 compiled on October 24 2000

Searching for build.xml ...
Searching in E:\Script\local\netrexx
Buildfile: E:\Script\local\netrexx\build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
Project base dir set to: E:\Script\local\netrexx
Build sequence for target `main' is [init, main]
Complete build sequence is [init, main, local]
 [netrexxc] Copying 1 file to E:\Script\local\netrexx\classes
 [netrexxc] Compiling 1 source file to E:\Script\local\netrexx\classes
 [netrexxc] Using NetRexx compiler
 [netrexxc] Compilation
args: -nobinary -comments -compile -nocompact -noconsole
 -nocrossref -decimal -nodiag -noexplicit -noformat -keep -logo -replace -no
save
log -sourcedir -nostrictargs -nostrictassign -nostrictcase -nostrictimport -
nost
rictprops -nostrictsignal -nosymbols -notime -trace2 -noutf8 -verbose3
 [netrexxc] Files to be compiled:
    E:\Script\local\netrexx\classes\hello.nrx

 [netrexxc]

BUILD FAILED

E:\Script\local\netrexx\build.xml:16: Compile failed, messages should have
been
provided.

Total time: 1 second


Mime
View raw message