This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am testing a Web project. Whenever I test it, it puts some files in my build directory. The build directory is supposed to be ignored, but then the project is marked as with changes from the files saved there. When I try to commit, it fails because it has no previous activity in the build/ path and have to delete the directory prior to commit.
Forgot to say, I have to delete the files externally and then restart my IDE.
> The build directory is supposed to be ignored Is it 'svn ignored'? i.e. is the folder ignored with svn:ignore property? What NetBeans build do you use?
Created attachment 111433 [details] Ignore list
The directory is on the svn:ignore list just as default. The build I'm using is netbeans-trunk-nightly-201109230601-ml-windows. Today I'm installing netbeans-trunk-nightly-201110020601-ml-windows.exe and will test again.
Can you browse the build folder and look for .svn folder? What is the first folder under build that contains the .svn metadata? Start in the folder with the modified file and go up.
Created attachment 111497 [details] Directory with .svn subdirectory The first folder containing the .svn directory is build\test\classes.
This is an exception I saw today: C:\Users\oso\.netbeans\dev\var\cache\executor-snippets\junit-debug.xml:107: java.io.IOException: Cannot create folder: N:\NWM\sources\Servicios\build\web\WEB-INF\classes\com\.svn\tmp\text-base at org.netbeans.modules.java.source.usages.BuildArtifactMapperImpl.copyRecursively(BuildArtifactMapperImpl.java:509) at org.netbeans.modules.java.source.usages.BuildArtifactMapperImpl.copyRecursively(BuildArtifactMapperImpl.java:527) at org.netbeans.modules.java.source.usages.BuildArtifactMapperImpl.copyRecursively(BuildArtifactMapperImpl.java:527) at org.netbeans.modules.java.source.usages.BuildArtifactMapperImpl.copyRecursively(BuildArtifactMapperImpl.java:527) at org.netbeans.modules.java.source.usages.BuildArtifactMapperImpl.copyRecursively(BuildArtifactMapperImpl.java:527) at org.netbeans.modules.java.source.usages.BuildArtifactMapperImpl.ensureBuilt(BuildArtifactMapperImpl.java:286) at org.netbeans.modules.java.source.ant.TranslateClassPath.translateEntry(TranslateClassPath.java:149) at org.netbeans.modules.java.source.ant.TranslateClassPath.translate(TranslateClassPath.java:112) at org.netbeans.modules.java.source.ant.TranslateClassPath.execute(TranslateClassPath.java:94) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor285.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:285) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) BUILD FAILED (total time: 0 seconds)
*** Bug 198033 has been marked as a duplicate of this bug. ***
BuildArtifactMapperImpl copies recursively all files and folders with no exception along with subversion metadata (.svn folder), which should not be copied at all but should be left unnoticed. Can only visible files (via VisibilityQuery) be copied (or as a WA this close to release exclude ".svn" from the copy)? see org.netbeans.modules.java.source.usages.BuildArtifactMapperImpl.copyRecursively
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/64c186feee73 User: Jan Lahoda <jlahoda@netbeans.org> Log: #202840: while BuildArtifactsMapperImpl copies the resources, it must ignore invisible files.
Only visible resources are copied after the above commit.