Lines 88-93
Link Here
|
88 |
import org.netbeans.api.project.ui.OpenProjects; |
88 |
import org.netbeans.api.project.ui.OpenProjects; |
89 |
import org.netbeans.spi.java.classpath.support.ClassPathSupport; |
89 |
import org.netbeans.spi.java.classpath.support.ClassPathSupport; |
90 |
|
90 |
|
|
|
91 |
import org.netbeans.spi.project.support.ant.PropertyUtils; |
91 |
import org.openide.filesystems.FileObject; |
92 |
import org.openide.filesystems.FileObject; |
92 |
import org.openide.filesystems.FileStateInvalidException; |
93 |
import org.openide.filesystems.FileStateInvalidException; |
93 |
import org.openide.filesystems.FileUtil; |
94 |
import org.openide.filesystems.FileUtil; |
Lines 219-230
Link Here
|
219 |
if (listeningCP != null) { |
220 |
if (listeningCP != null) { |
220 |
for (String cp : listeningCP.split(File.pathSeparator)) { |
221 |
for (String cp : listeningCP.split(File.pathSeparator)) { |
221 |
logger.log(Level.FINE, "Listening cp = '" + cp + "'"); |
222 |
logger.log(Level.FINE, "Listening cp = '" + cp + "'"); |
222 |
File f = new File(cp); |
223 |
File f = PropertyUtils.resolveFile(baseDir, cp); |
223 |
f = FileUtil.normalizeFile(f); |
224 |
f = FileUtil.normalizeFile(f); |
224 |
URL entry = FileUtil.urlForArchiveOrDir(f); |
225 |
URL entry = FileUtil.urlForArchiveOrDir(f); |
225 |
|
226 |
|
226 |
if (entry != null) { |
227 |
if (entry != null) { |
227 |
srcRootsToListenForArtifactsUpdates = new HashSet<FileObject>(); |
228 |
if (srcRootsToListenForArtifactsUpdates == null) |
|
|
229 |
srcRootsToListenForArtifactsUpdates = new HashSet<FileObject>(); |
228 |
for (FileObject src : SourceForBinaryQuery.findSourceRoots(entry).getRoots()) { |
230 |
for (FileObject src : SourceForBinaryQuery.findSourceRoots(entry).getRoots()) { |
229 |
srcRootsToListenForArtifactsUpdates.add(src); |
231 |
srcRootsToListenForArtifactsUpdates.add(src); |
230 |
} |
232 |
} |