[ 
https://jira.codehaus.org/browse/MECLIPSE-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281261#comment-281261
 ] 

Barrie Treloar commented on MECLIPSE-642:
-----------------------------------------

Can I get an example project that exhibits the problem.

My quick integration test project does not through this exception.
(I still need to work on the expected file details in order to pass the tests)

{noformat}
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <directory>../shared-resources</directory>
      </resource>
    </resources>
{noformat}

sample log output:

{noformat}
[DEBUG] Processing classpath for: source src/main/java: output=null, 
include=[**/*.java], exclude=[], test=false, filtering=false; default 
output=target/classes
[DEBUG] Processing classpath for: resource src/main/resources: 
output=target/classes, include=[], exclude=[**/*.java], test=false, 
filtering=false; default output=target/classes
[DEBUG] Processing classpath for: resource 
D:/ide/maven/maven-eclipse-plugin/target/test-classes/projects/project-65-MECLIPSE-642/shared-resources:
 output=target/classes, include=[], exclude=[**/*.java], test=false, 
filtering=false; default output=target/classes
{noformat}

> "String index out of range" during eclipse:eclipse for a project that works 
> with 2.7
> ------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-642
>                 URL: https://jira.codehaus.org/browse/MECLIPSE-642
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Workspace settings
>    Affects Versions: 2.8
>         Environment: Windows XP, Maven 2.2.1, Maven 2.x Eclipse Plugin v2.8
>            Reporter: Matthew McCullough
>            Assignee: Barrie Treloar
>         Attachments: Eclipse Plugin 2.8 Out Of Bounds Error.txt
>
>
> We tried to upgrade to using v2.8 of the plugin, but a regression stops us 
> dead in our tracks.  Reverting to 2.7 allows us to continue for now.
> When running eclipse:eclipse on our projects, we get an occasional
> "String index out of range: -6"
> The stack trace indicates this is on line 111 of:
> http://svn.apache.org/viewvc/maven/plugins/tags/maven-eclipse-plugin-2.8/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseSettingsWriter.java?view=markup
> I see that those lines are:
> 109    {
> 110          Resource resource = (Resource) it.next();
> 111          String relativePath = resource.getDirectory().substring( 
> basedir.length() ).replace( '\\', '/' );
> 112          coreSettings.put( PROP_JDT_CORE_COMPILER_ENCODING + 
> relativePath, encoding );
> 113    }
> I've attached a snippet of the -X output (about the last 50 lines)...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to