|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.java.j2seproject.classpath; import java.beans.PropertyChangeEvent; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; import java.net.MalformedURLException; import java.io.File; import java.net.URL; import org.netbeans.spi.java.classpath.ClassPathImplementation; import org.netbeans.spi.java.classpath.support.ClassPathSupport; import org.netbeans.spi.project.support.ant.AntProjectHelper; import org.netbeans.spi.project.support.ant.PropertyEvaluator; import org.netbeans.spi.project.support.ant.PropertyUtils; import org.openide.ErrorManager; import org.openide.filesystems.FileUtil; import org.openide.util.WeakListeners; /** * Implementation of a single classpath that is derived from one Ant property. */ final class ProjectClassPathImplementation implements ClassPathImplementation, PropertyChangeListener { private PropertyChangeSupport support = new PropertyChangeSupport(this); private AntProjectHelper helper; private String propertyName; private List resources; private final PropertyEvaluator evaluator; /** * Construct the implementation. * @param helper an Ant project, used to resolve file paths * @param propertyName the name of an Ant property which will supply the classpath * @param evaluator a property evaluator used to find the value of the classpath */ public ProjectClassPathImplementation(AntProjectHelper helper, String propertyName, PropertyEvaluator evaluator) { assert helper != null && propertyName != null; this.helper = helper; this.evaluator = evaluator; this.propertyName = propertyName; evaluator.addPropertyChangeListener(WeakListeners.propertyChange(this, evaluator)); } public synchronized List /* |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.