Examples of FileResourceStore


Examples of com.opensymphony.xwork2.util.classloader.FileResourceStore

            } else {
                //get all subdirs
                List<File> dirs = new ArrayList<File>();
                getAllPaths(file, dirs);

                classLoader.addResourceStore(new FileResourceStore(file));

                for (File dir : dirs) {
                    //register with the fam
                    fam.addListener(dir, this);
                    if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of com.opensymphony.xwork2.util.classloader.FileResourceStore

        URL parentRoot = pParent.getResource("");
        URL root = URLUtil.normalizeToFileProtocol(parentRoot);
        root = (URL) ObjectUtils.defaultIfNull(root, parentRoot);
        try {
            if (root != null) {
                stores = new ResourceStore[]{new FileResourceStore(new File(root.toURI()))};
            } else {
                throw new XWorkException("Unable to start the reloadable class loader, consider setting 'struts.convention.classes.reload' to false");
            }
        } catch (URISyntaxException e) {
            throw new XWorkException("Unable to start the reloadable class loader, consider setting 'struts.convention.classes.reload' to false", e);
View Full Code Here

Examples of com.opensymphony.xwork2.util.classloader.FileResourceStore

            } else {
                //get all subdirs
                List<File> dirs = new ArrayList<File>();
                getAllPaths(file, dirs);

                classLoader.addResourceStore(new FileResourceStore(file));

                for (File dir : dirs) {
                    //register with the fam
                    fam.addListener(dir, this);
                    LOG.debug("Watching [#0] for changes", dir.getAbsolutePath());
View Full Code Here

Examples of com.opensymphony.xwork2.util.classloader.FileResourceStore

        URL parentRoot = pParent.getResource("");
        URL root = URLUtil.normalizeToFileProtocol(parentRoot);
        root = (URL) ObjectUtils.defaultIfNull(root, parentRoot);
        try {
            if (root != null) {
                stores = new ResourceStore[]{new FileResourceStore(new File(root.toURI()))};
            } else {
                throw new XWorkException("Unable to start the reloadable class loader, consider setting 'struts.convention.classes.reload' to false");
            }
        } catch (URISyntaxException e) {
            throw new XWorkException("Unable to start the reloadable class loader, consider setting 'struts.convention.classes.reload' to false", e);
View Full Code Here

Examples of com.opensymphony.xwork2.util.classloader.FileResourceStore

            } else {
                //get all subdirs
                List<File> dirs = new ArrayList<File>();
                getAllPaths(file, dirs);

                classLoader.addResourceStore(new FileResourceStore(file));

                for (File dir : dirs) {
                    //register with the fam
                    fam.addListener(dir, this);
                    LOG.debug("Watching [#0] for changes", dir.getAbsolutePath());
View Full Code Here

Examples of com.opensymphony.xwork2.util.classloader.FileResourceStore

            } else {
                //get all subdirs
                List<File> dirs = new ArrayList<File>();
                getAllPaths(file, dirs);

                classLoader.addResourceStore(new FileResourceStore(file));

                for (File dir : dirs) {
                    //register with the fam
                    fam.addListener(dir, this);
                    if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of com.opensymphony.xwork2.util.classloader.FileResourceStore

            } else {
                //get all subdirs
                List<File> dirs = new ArrayList<File>();
                getAllPaths(file, dirs);

                classLoader.addResourceStore(new FileResourceStore(file));

                for (File dir : dirs) {
                    //register with the fam
                    fam.addListener(dir, this);
                    if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.commons.jci.stores.FileResourceStore

                    + ctxt.getServletClassName()).replace('.', '/') + ".java";
        String[] resources = new String[] {targetResource};

        JavaCompiler javaCompiler = (new JavaCompilerFactory()).createCompiler(options.getCompiler().substring(4));
        FileResourceReader reader = new FileResourceReader(ctxt.getOptions().getScratchDir());
        FileResourceStore store = new FileResourceStore(ctxt.getOptions().getScratchDir());
        JavaCompilerSettings settings = javaCompiler.createDefaultSettings();
        if (settings == null) {
            settings = new JavaCompilerSettings();
        }
        settings.setDeprecations(false);
View Full Code Here

Examples of org.apache.commons.jci.stores.FileResourceStore

   
   
    final File directory = new File("/Users/fwb/work/urban/java/Urban/bin");
    if (directory.exists()){
    ReloadingClassLoader classLoader = new ReloadingClassLoader(ReloadingTransformer.class.getClassLoader());
    classLoader.addResourceStore(new FileResourceStore(directory));
    loader = classLoader;
    ReloadingListener listener = new ReloadingListener();

    listener.addReloadNotificationListener(classLoader);
View Full Code Here

Examples of org.apache.commons.jci.stores.FileResourceStore

                maxwarns = Integer.parseInt(option.getValue());
            }
        }

        final ResourceReader reader = new FileResourceReader(sourcepath);
        final ResourceStore store = new FileResourceStore(targetpath);
       
        final int maxErrors = maxerrs;
        final int maxWarnings = maxwarns;
        compiler.setCompilationProblemHandler(new CompilationProblemHandler() {
            int errors = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.