Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] New builder error in JDT?


Stef,

You can specifically restrict which files are copied to the output location.
@see JavaCore.getOptions() and the example below from the launching plugin which excludes all files with the launch configuration file extension:

Hashtable optionsMap = JavaCore.getOptions();
                String filters= (String)optionsMap.get("org.eclipse.jdt.core.builder.resourceCopyExclusionFilters"); //$NON-NLS-1$
                filters= filters + ",*." + ILaunchConfiguration.LAUNCH_CONFIGURATION_FILE_EXTENSION; //$NON-NLS-1$
                optionsMap.put("org.eclipse.jdt.core.builder.resourceCopyExclusionFilters", filters);  //$NON-NLS-1$
                JavaCore.setOptions(optionsMap);

Darins




Stef_van_Dijk@xxxxxxx
Sent by: jdt-ui-dev-admin@xxxxxxxxxxx

04/15/02 10:29 AM
Please respond to jdt-ui-dev

       
        To:        jdt-ui-dev@xxxxxxxxxxx
        cc:        
        Subject:        [jdt-ui-dev] New builder error in JDT?



Not sure how new this is, but I never noticed this in Eclipse 1.0, and only
just saw it with the 4/12 Integration Build.
Our plugin allows a project structure where files (specifically files
contained in the META-INF directory (ie, non-java files)) can overlap by
having them in separate source folders. We "manage" the overlap with our
submit (jar-like) operation which will package up the files from the
correct source folder. This is a significant feature for our plugin and is
currently used by WSDD developers. The problem is that in the current
Eclipse builds, I now get the following error for all the overlapping
files:

"This resource is a duplicate and was not copied to the output folder"

This is placing red error markers on these files, while in our context,
these are not errors at all. I'm at a loss as to how to cope with this
change. I don't see any way of surpressing or filtering this error for our
customers. Does anyone have any suggestions on how to deal with this?

  Stef


_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-ui-dev



Back to the top