You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Farrell <Fa...@cat.com> on 2003/09/24 03:25:20 UTC
how do I see my Java exceptions? -e and -X don't help
I am writing Jelly code like this:
<ant:fileScanner var="extensionXmlFiles">
<ant:fileset dir="${basedir}/src">
<ant:patternset>
<ant:include name="**/extension.xml"/>
</ant:patternset>
</ant:fileset>
</ant:fileScanner>
<j:forEach var="file" items="${extensionXmlFiles.iterator()}">
<ant:echo>File is ${file}</ant:echo>
<j:set var="srcDir" value="${basedir}/src" />
<j:set var="relative"
value="${file.getAbsolutePath().substring(srcDir.length() + 1)}" />
<ant:echo>Relative is ${relative}</ant:echo>
</j:forEach>
Now when I add the "+1" in, relative is "", but without it relative is
correct. My understanding is that there's some sort of error occurring in the
execution of the Java in the Jelly, but I can't guess what, and -e and -X
don't tell me anything useful. Is there a way I can find out what is going
on?
Thanks,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how do I see my Java exceptions? -e and -X don't help
Posted by John Farrell <Fa...@cat.com>.
On Wed, 24 Sep 2003 11:30 am, Nathan Coast wrote:
> try having a look in the maven.log in your project root.
> > My understanding is that there's some sort of error occurring in
> > the execution of the Java in the Jelly, but I can't guess what, and -e
> > and -X don't tell me anything useful. Is there a way I can find out what
> > is going on?
Thanks Nathan, the exception is there. It makes absolutely no sense, but it
*is* there :-).
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how do I see my Java exceptions? -e and -X don't help
Posted by Nathan Coast <na...@codeczar.com>.
try having a look in the maven.log in your project root.
John Farrell wrote:
> I am writing Jelly code like this:
>
> <ant:fileScanner var="extensionXmlFiles">
> <ant:fileset dir="${basedir}/src">
> <ant:patternset>
> <ant:include name="**/extension.xml"/>
> </ant:patternset>
> </ant:fileset>
> </ant:fileScanner>
>
> <j:forEach var="file" items="${extensionXmlFiles.iterator()}">
> <ant:echo>File is ${file}</ant:echo>
> <j:set var="srcDir" value="${basedir}/src" />
> <j:set var="relative"
> value="${file.getAbsolutePath().substring(srcDir.length() + 1)}" />
> <ant:echo>Relative is ${relative}</ant:echo>
> </j:forEach>
>
>
> Now when I add the "+1" in, relative is "", but without it relative is
> correct. My understanding is that there's some sort of error occurring in the
> execution of the Java in the Jelly, but I can't guess what, and -e and -X
> don't tell me anything useful. Is there a way I can find out what is going
> on?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how do I see my Java exceptions? -e and -X don't help
Posted by John Farrell <Fa...@cat.com>.
On Wed, 24 Sep 2003 11:35 am, dion@multitask.com.au wrote:
> Why not just use the maven makeRelativePath tag?
Hmm, firstly because I didn't know it existed, secondly because I am actually
trying to do something more complicated, and thirdly because I really want to
grok how this Jelly coding works. It gets more mysterious, this problem.
I am currently trying this:
<j:forEach var="file" items="${extensionXmlFiles.iterator()}">
<ant:echo>File is ${file}</ant:echo>
<j:set var="srcDir" value="${basedir}/src" />
<j:set var="junk" value="${srcDir}/" />
<j:set var="relative"
value="${file.getAbsolutePath().substring(junk.length())}" />
<j:set var="end" value="${relative.length() - 13}" />
<ant:echo>end is ${end}</ant:echo>
<j:set var="root" value="${relative.substring(0,end)}" />
<ant:echo>Root is ${root}</ant:echo>
</j:forEach>
I get a correct value for end, but an incorrect value for root (i.e. ""). The
exception in maven.log is "java.lang.NumberFormatException: excludes", to
which I say "what the?". I really don't get it right now.
I'll look up makeRelativePath in case there is also a
"doExactlyWhatJohnIsTryingToAchieve" tag in there as well. You never know
your luck...
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how do I see my Java exceptions? -e and -X don't help
Posted by di...@multitask.com.au.
Why not just use the maven makeRelativePath tag?
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
John Farrell <Fa...@cat.com> wrote on 24/09/2003 11:25:20 AM:
> I am writing Jelly code like this:
>
> <ant:fileScanner var="extensionXmlFiles">
> <ant:fileset dir="${basedir}/src">
> <ant:patternset>
> <ant:include name="**/extension.xml"/>
> </ant:patternset>
> </ant:fileset>
> </ant:fileScanner>
>
> <j:forEach var="file" items="${extensionXmlFiles.iterator()}">
> <ant:echo>File is ${file}</ant:echo>
> <j:set var="srcDir" value="${basedir}/src" />
> <j:set var="relative"
> value="${file.getAbsolutePath().substring(srcDir.length() + 1)}" />
> <ant:echo>Relative is ${relative}</ant:echo>
> </j:forEach>
>
>
> Now when I add the "+1" in, relative is "", but without it relative is
> correct. My understanding is that there's some sort of error occurring
in the
> execution of the Java in the Jelly, but I can't guess what, and -e and
-X
> don't tell me anything useful. Is there a way I can find out what is
going
> on?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org