ANT build error

0 votes

Hi I'm trying to use the build.xml file to build the java server code before uploading to our GPaaS.

The build.xml file contains this line:

<import file="nbproject/build-impl.xml"/>

This file is not included in the QuizServer sample.

When we run the ant script "ant build.xml" we get the following error:

C:\Users\Trip Admin\Desktop\Server for Delpoyment\GOT_Quiz\build.xml:12: Cannot
find C:\Users\Trip Admin\Desktop\Server for Delpoyment\GOT_Quiz\nbproject\build-
impl.xml imported from C:\Users\Trip Admin\Desktop\Server for Delpoyment\GOT_Qui
z\build.xml

I believe this file is  a net beans build file

How do I fix this problem so I can build the java files to upload to AppWarpS2?

Please help

 

Many thanks

asked Jun 24, 2015 in AppWarpS2 by wiredvoltage (84 points)
edited Jun 24, 2015 by wiredvoltage

1 Answer

0 votes

Hi,

Download our warp.xml file and place the file parallel to your src and libs folder same as in this page. Then try running

ant -f warp.xml

Do let us know if you face any problem.

answered Jun 25, 2015 by rajeev.etc (1,660 points)
Hi rajeev.etc.

I did what you said and the we now get this error:

C:\Users\Trip Admin\Documents\Eclipse Projects\QuizServer>ant -f warp.xml
Buildfile: C:\Users\Trip Admin\Documents\Eclipse Projects\QuizServer\warp.xml

clean:
   [delete] Deleting directory C:\Users\Trip Admin\Documents\Eclipse Projects\Qu
izServer\build

BUILD FAILED
C:\Users\Trip Admin\Documents\Eclipse Projects\QuizServer\warp.xml:16: Unable to
 delete file C:\Users\Trip Admin\Documents\Eclipse Projects\QuizServer\build\jar
\quizserver.jar

Total time: 0 seconds

C:\Users\Trip Admin\Documents\Eclipse Projects\QuizServer>

Please help again?
Hi,

It seems like there is already an instance quizserver.jar running on your system, so when you are trying to build it again it is not able to delete the previously built jar file.

Can you stop that from task manager? Or you can restart your system then try the ant command again to build it.

Let us know if it does not work.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...