No that didn't work either. In fact I tried a large nonsense string too and that also resulted in the very same exception, which surprised me. I've just downloaded the maven source code so I'll check if I still get the same behaviour.

On 2 Sep 2005, at 14:52, Trygve Laugstøl wrote:

On Fri, Sep 02, 2005 at 02:47:35PM +0100, Ashley Williams wrote:

Hi, I'm trying to configure my source directory to be the current
directory like so:

attempt 1:
  <build>
    <sourceDirectory></sourceDirectory>

attempt 2:
  <build>
    <sourceDirectory>/</sourceDirectory>


Try ".".



which works fine. The problem is when I subsequently run the
eclipse:eclipse goal, which in both cases results in the following
exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1768)
        at java.lang.String.substring(String.java:1735)
        at org.apache.maven.plugin.eclipse.EclipseWriter.toRelative
(EclipseWriter.java:362)
        at
org.apache.maven.plugin.eclipse.EclipseWriter.addSourceRoots
(EclipseWriter.java:262)
        at
org.apache.maven.plugin.eclipse.EclipseWriter.writeEclipseClasspath
(EclipseWriter.java:180)
        at org.apache.maven.plugin.eclipse.EclipseWriter.write
(EclipseWriter.java:64)
        at org.apache.maven.plugin.eclipse.EclipsePlugin.execute
(EclipsePlugin.java:100)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.java:401)

Without having the sourcecode I can sort of guess that the empty path
would give it problems, but does anybody know if this is fixed in the
forthcoming beta?


This looks like a bug, please file it in jira[1] under 'maven- plugins'.

[1]: http://jira.codehaus.org/browse/MNG

--
Trygve



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to