Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.6
-
Fix Version/s: 1.5.7, 1.6-beta-2
-
Component/s: Ant integration
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
I have such thing working in our CI environment but couldn't figure out why is it not working when done from command line.
download http://anonsvn.jboss.org/repos/repository.jboss.org/maven2/jboss/jbossall-client/4.2.2.GA/jbossall-client-4.2.2.GA.jar to jbossall-client.jar
"groovy -cp jbossall-client.jar groovy_bug.groovy" works fine
"ant -f groovy_bug.xml" throws an exception although task's classpath is set and otherwise classes from jbossall-client.jar are resolved:
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
"ant -lib . -f groovy_bug.xml" works fine.
Activity
Paul King
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Not A Bug [ 6 ] |
A
made changes -
| Resolution | Not A Bug [ 6 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Paul King
made changes -
| Component/s | class generator [ 10443 ] |
Paul King
made changes -
| Attachment | groovy_ant_fork.patch [ 35803 ] |
Paul King
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 1.5.7 [ 14242 ] | |
| Fix Version/s | 1.6-beta-2 [ 14261 ] | |
| Assignee | Paul King [ paulk ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |