Re: problem running an ant bu

2004-06-22 Thread Eric Giguere
Hi
It is compatible but, before using ant tags, you should add in your 
maven xml these lines:

project default=whatevergoal...
*  xmlns:ant=jelly:ant*
 xmlns:license=license
 xmlns:maven=jelly:maven
And then, if you want to call ant on a file, you would do it like this:
ant:ant antfile=build.xml target=properties /   

Hope it helps
Eric.
[EMAIL PROTECTED] wrote:
I have a project which is almost cloned from Turbine 2.2.1 TDK sample. I
tried to convert the build from ant to maven. The quickest way as I
perceived is, besides creating a project.xml, to call build.xml from
maven.xml as follows:

project default=run-ant
 goal name=run-ant
   ant antfile=build.xml target=init/
 /goal
/project

When I run ant init it works, but when I run maven it gives following
error:
BUILD FAILED
File.. C:\Documents and
Settings\FWen\jbproject\turbine\webapps\testproj\WEB-INF
\build\maven.xml
Element... ant
Line.. 3
Column 45
C:\webapps\testproj\WEB-INF\lib not found.
Total time: 6 seconds
Finished at: Tue Jun 22 10:12:37 PDT 2004

Apparently there is a path mis-config in maven. But I don't understand why
the error only happens in maven, not in ant. Isn't maven supposed to be
compatible with ant?


Fred Wen
604-609-6491

 




RE: problem running an ant bu

2004-06-22 Thread FWen
This is not the cause b/c ant is the default namespace in jelly, as
documented by maven and tried/confirmed by me.

By turning on debug option, I see the script runs build.xml and errored out
at line 189 but that line 
ant
antfile=${torque.buildFile}
target=create-db
/ant
still doesn't give me any clue.
This brings up another issue: how do I debug and control the flow of a build
process in maven? Using -X option is a way too primitive method. Without a
real debugger, things are left out to guess.


Fred Wen
604-609-6491

-Original Message-
From: Eric Giguere [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 22, 2004 10:46 AM
To: Maven Users List
Subject: Re: problem running an ant bu

Hi
It is compatible but, before using ant tags, you should add in your 
maven xml these lines:

project default=whatevergoal...
*  xmlns:ant=jelly:ant*
  xmlns:license=license
  xmlns:maven=jelly:maven

And then, if you want to call ant on a file, you would do it like this:

ant:ant antfile=build.xml target=properties /   

Hope it helps
Eric.


[EMAIL PROTECTED] wrote:

I have a project which is almost cloned from Turbine 2.2.1 TDK sample. I
tried to convert the build from ant to maven. The quickest way as I
perceived is, besides creating a project.xml, to call build.xml from
maven.xml as follows:

 

project default=run-ant

  goal name=run-ant

ant antfile=build.xml target=init/

  /goal

/project

 

When I run ant init it works, but when I run maven it gives following
error:

BUILD FAILED

File.. C:\Documents and
Settings\FWen\jbproject\turbine\webapps\testproj\WEB-INF

\build\maven.xml

Element... ant

Line.. 3

Column 45

C:\webapps\testproj\WEB-INF\lib not found.

Total time: 6 seconds

Finished at: Tue Jun 22 10:12:37 PDT 2004

 

Apparently there is a path mis-config in maven. But I don't understand why
the error only happens in maven, not in ant. Isn't maven supposed to be
compatible with ant?

 

 

Fred Wen

604-609-6491

 


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]