You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Wes Moulder <wm...@axyssolutions.com> on 2000/09/28 22:16:11 UTC

RMIC

I'm still using Ant 1.1, and I'm trying to build jboss with it.  The problem
I'm having is with the rmic task.  It says I should supply it with the class
name to be compiled, and the directory base.  I'm giving it the directory of
where to find the compiled class, and the class name and it's dying with a
StringIndexOutOfBoundsException.  I've also tried it where I give it the
directory of where to find the source file for the class I'm trying to RMIC,
but neither works.  Am I missing something obvious?

	    <rmic base="${jboss.sourcepath}"
	          classname="org.jboss.jmx.server.JMXAdaptorImpl"
	          stubVersion="1.2"
	          classpath="${jboss.classpath}"/>

	    <rmic base="${jboss.outpath}"
	          classname="org.jboss.jmx.server.JMXAdaptorImpl"
	          stubVersion="1.2"
	          classpath="${jboss.classpath}"/>

These are the two different ways I had done it.  jboss.outpath is set to my
temp directory, and jboss.sourcepath is set to the base directory of the
source tree. Any help on this would be appreciated as this is a problem I
keep running into, and I'd like to quit working around it, and do it the
right way.

--Wes Moulder
Axys Solutions, LLC


RE: RMIC

Posted by Wes Moulder <wm...@axyssolutions.com>.
Egad! My gaff!  I seem to be using 1.0rc1.
That should clear this all up nicely then.
Thanks for your patience,
-Wes

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@m64.com]
> Sent: Friday, September 29, 2000 9:52 AM
> To: ant-user@jakarta.apache.org
> Subject: RE: RMIC
> 
> 
> ant -version
> 
> If that doesn;t work - it is pre 1.1
> 
> 

RE: RMIC

Posted by Conor MacNeill <co...@m64.com>.
ant -version

If that doesn;t work - it is pre 1.1

> -----Original Message-----
> From: Wes Moulder [mailto:wmoulder@axyssolutions.com]
> Sent: Saturday, 30 September 2000 1:50
> To: ant-user@jakarta.apache.org
> Subject: RE: RMIC
> 
> 
> Is there a way I can tell what version of Ant I'm using? I'm not 
> the source
> of my ant package.
> What I'll probably do is update to 1.1 cleanly, but it might be 
> nice to know
> about.
> --Wes
> 
> > -----Original Message-----
> > From: Stefan Bodewig [mailto:bodewig@bost.de]
> > Sent: Friday, September 29, 2000 9:43 AM
> > To: ant-user@jakarta.apache.org
> > Subject: Re: RMIC
> >
> >
> > Wes, your stack trace doesn't align very well with revision 1.9 of
> > Rmic.java (it doesn't at all). 1.9 is tagged as ANT1_1, are you sure,
> > you are using the release build of Ant 1.1?
> >
> > The difference between revisions 1.7 and 1.8 has the log message "Make
> > Rmic work when only one class is specified" and the diffs look as if
> > they would fix the exact problem you've encountered.
> >
> > So my very best guess is you're not really using Ant 1.1. Updating
> > Rmic.java to Revision 1.9 should be save - in case the ANT1_1 tag is
> > wrong, which I very much doubt.
> >
> > Stefan
> >
> >
> 

RE: RMIC

Posted by Wes Moulder <wm...@axyssolutions.com>.
Is there a way I can tell what version of Ant I'm using? I'm not the source
of my ant package.
What I'll probably do is update to 1.1 cleanly, but it might be nice to know
about.
--Wes

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@bost.de]
> Sent: Friday, September 29, 2000 9:43 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: RMIC
>
>
> Wes, your stack trace doesn't align very well with revision 1.9 of
> Rmic.java (it doesn't at all). 1.9 is tagged as ANT1_1, are you sure,
> you are using the release build of Ant 1.1?
>
> The difference between revisions 1.7 and 1.8 has the log message "Make
> Rmic work when only one class is specified" and the diffs look as if
> they would fix the exact problem you've encountered.
>
> So my very best guess is you're not really using Ant 1.1. Updating
> Rmic.java to Revision 1.9 should be save - in case the ANT1_1 tag is
> wrong, which I very much doubt.
>
> Stefan
>
>


Re: RMIC

Posted by Stefan Bodewig <bo...@bost.de>.
Wes, your stack trace doesn't align very well with revision 1.9 of
Rmic.java (it doesn't at all). 1.9 is tagged as ANT1_1, are you sure,
you are using the release build of Ant 1.1?

The difference between revisions 1.7 and 1.8 has the log message "Make
Rmic work when only one class is specified" and the diffs look as if
they would fix the exact problem you've encountered.

So my very best guess is you're not really using Ant 1.1. Updating
Rmic.java to Revision 1.9 should be save - in case the ANT1_1 tag is
wrong, which I very much doubt.

Stefan


RE: RMIC

Posted by Wes Moulder <wm...@axyssolutions.com>.
compile.jboss:

BUILD FAILED

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(Unknown Source)
        at org.apache.tools.ant.taskdefs.Rmic.shouldCompile(Rmic.java:327)
        at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:190)
        at org.apache.tools.ant.Target.execute(Target.java:127)
        at org.apache.tools.ant.Project.runTarget(Project.java:708)
        at org.apache.tools.ant.Project.executeTarget(Project.java:439)
        at org.apache.tools.ant.Project.executeTargets(Project.java:413)
        at org.apache.tools.ant.Main.runBuild(Main.java:278)
        at org.apache.tools.ant.Main.main(Main.java:107)

I did some investigating on the RMIC taskdef, and it seems to be converting
all .'s to /'s.  Shortly thereafter, it goes looking for the index of
.class, which is what throws this exception, as there is no longer a .class,
it's a /class.  I can't believe this is a problem with RMIC, as no one would
have been able to use it in 1.1.  Can anyone confirm that it works fine?

I'm hesitant about moving to 1.2 before it's stable because I don't want
anything I write to have to be rewritten because syntax, and ideas changed
before 1.2 was finalized, but if it comes down to it, could someone
recommend a good stable build date?


> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@bost.de]
> Sent: Friday, September 29, 2000 4:58 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: RMIC
>
>
> >>>>> "WM" == Wes Moulder <wm...@axyssolutions.com> writes:
>
>  WM> I'm still using Ant 1.1,
>
> rmic has change somewhat since then ...
>
> Could you send the complete stack trace of the exception, this would
> probably help a lot.
>
> Stefan
>


Re: RMIC

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "WM" == Wes Moulder <wm...@axyssolutions.com> writes:

 WM> I'm still using Ant 1.1, 

rmic has change somewhat since then ...

Could you send the complete stack trace of the exception, this would
probably help a lot.

Stefan