ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shailesh Sharma <shailesh_s...@yahoo.com>
Subject RE: Newbie; how to invoke an ant script from a GUI interface
Date Thu, 15 Jan 2004 18:28:45 GMT
I have downloaded cruisecontrol and configured the 2 paramters as stated here:
 
C:\cruise-control-download\cruisecontrol-2.1.4\reporting\jsp\docs\install.html
 
1. In web.xml > change the log file settings
2. In  buildresults.jsp > change 
<%@ taglib uri="/WEB-INF/cruisecontrol-jsp11.tld" prefix="cruisecontrol"%>
to: 
<%@ taglib uri="/WEB-INF/cruisecontrol-jsp12.tld" prefix="cruisecontrol"%>

and then i ran the ant's build.xml that is been provided. This is how i ran the ant command:

>ant war

Please Note: Iam on a unix box.

This is what iam getting as an ERRORS:

root@reliant2# ant war
Buildfile: build.xml

clean:
   [delete] Deleting directory /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/dist
   [delete] Deleting directory /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/classes
   [delete] Deleting directory /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/testresults
   [delete] Deleting directory /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/tmp

init:
    [mkdir] Created dir: /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/dist
    [mkdir] Created dir: /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/classes
    [mkdir] Created dir: /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/testresults
    [mkdir] Created dir: /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/tmp

check-duplication:

checkstyle:
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/servlet/FileServlet.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/ArtifactsLinkTag.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/ArtifactsLinkTagExtraInfo.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/CruiseControlBodyTagSupport.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/CruiseControlLogFileFilter.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/CruiseControlTagSupport.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/CurrentBuildStatusTag.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/LinkTag.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/LinkTagExtraInfo.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/NavigationTag.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/NavigationTagExtraInfo.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/ReversedComparator.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/Tab.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/TabSheetTag.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/TabTag.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/XSLTag.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/mock/MockBodyContent.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/mock/MockPageContext.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/mock/MockServletConfig.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/mock/MockServletContext.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/mock/MockServletRequest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/mock/MockServletResponse.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/servlet/FileServletTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/ArtifactsLinkTagTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/CruiseControlBodyTagSupportTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/CruiseControlTagSupportTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/LinkTagTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/NavigationTagTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/TabSheetTagTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/TabTagTest.java:0:
Got an exception - java.lang.ClassCastException
[checkstyle] /export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/test/net/sourceforge/cruisecontrol/taglib/XSLTagTest.java:0:
Got an exception - java.lang.ClassCastException

BUILD FAILED

file:/export/home/ext5sxs/cruise-unfolded/cruisecontrol-2.1.4/reporting/jsp/build.xml:85:
Got 31 errors.

Total time: 10 seconds

 

WHAT IS THIS ERROR MEANS?

How can i resolve this now.

 

Thanks, shailesh

 

 

 

 



"Conelly, Luis (PS, GNF, Contractor)" <Luis.Conelly@gnf.com> wrote:
Shailesh

You might want to give a try to antelope
http://sourceforge.net/projects/antelope/
http://antelope.smartpennies.com/

Or cruisecontrol
http://cruisecontrol.sourceforge.net/ 
http://cruisecontrol.sourceforge.net/reporting/jsp/index.html

You don't have to invent the wheel again... =) 

Check them out. I'll try to find out how to get this done (I got curious about it)

Regards

Luis


-----Original Message-----
From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com]
Sent: Wednesday, January 14, 2004 2:20 PM
To: Ant Users List
Subject: RE: Newbie; how to invoke an ant script from a GUI interface


Moreover, when iam compiling this appllet called AntApplet.java, iam getting an error as:
setProject is not public; cannot be accesed from outside package.

I need to compile this applet example and run it ......

"Conelly, Luis (PS, GNF, Contractor)" wrote:
http://marc.theaimsgroup.com/?l=ant-user&m=102139438123354&w=2

Luis

-----Original Message-----
From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com]
Sent: Wednesday, January 14, 2004 1:36 PM
To: Ant Users List
Subject: Newbie; how to invoke an ant script from a GUI interface



Hi Gurus,

I have 2 scripts and this is how i run these 2 scripts:

1) I will type : 

ant deploy-xyz prod

ant deploy-abc test

and these scripts does there business very well.

Now my question is: can i run these 2 scripts from a GUI interface ?

I mean i have a jsp page that contains 2 buttons namely as "prod" and "test" and when i hit
"prod" button i should invoke the first script and similarly when i will hit "test" button
i will invoke the second script.

All i wanted to do is to make a GUI for these 2 scripts.

can i do this or not ?



Thanks, shailesh









---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message