Skip to content

Commit fb1b79b

Browse files
committed
#433 filters for library folders do not filter tests
I have changed the filters in such a way that the library name can be whatever. So also examples test which was not possible with the previous filters
1 parent 1ea595d commit fb1b79b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/NewSketchWizard.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ void createProject(IProjectDescription description, IProject project, IProgressM
277277
ICExclusionPatternPathEntry[] entries = cfgd.getConfiguration().getSourceEntries();
278278
if (entries.length == 1) {
279279
Path exclusionPath[] = new Path[5];
280-
exclusionPath[0] = new Path(Const.LIBRARY_PATH_SUFFIX + "/**/?xamples/**"); //$NON-NLS-1$
281-
exclusionPath[1] = new Path(Const.LIBRARY_PATH_SUFFIX + "/**/?xtras/**"); //$NON-NLS-1$
282-
exclusionPath[2] = new Path(Const.LIBRARY_PATH_SUFFIX + "/**/test/**"); //$NON-NLS-1$
283-
exclusionPath[3] = new Path(Const.LIBRARY_PATH_SUFFIX + "/**/third-party/**"); //$NON-NLS-1$
280+
exclusionPath[0] = new Path(Const.LIBRARY_PATH_SUFFIX + "/?*/**/?xamples/**"); //$NON-NLS-1$
281+
exclusionPath[1] = new Path(Const.LIBRARY_PATH_SUFFIX + "/?*/**/?xtras/**"); //$NON-NLS-1$
282+
exclusionPath[2] = new Path(Const.LIBRARY_PATH_SUFFIX + "/?*/**/test*/**"); //$NON-NLS-1$
283+
exclusionPath[3] = new Path(Const.LIBRARY_PATH_SUFFIX + "/?*/**/third-party/**"); //$NON-NLS-1$
284284
exclusionPath[4] = new Path(Const.LIBRARY_PATH_SUFFIX + "**/._*"); //$NON-NLS-1$
285285

286286
ICExclusionPatternPathEntry newSourceEntry = new CSourceEntry(entries[0].getFullPath(), exclusionPath,

0 commit comments

Comments
 (0)