Examples of markValid()


Examples of org.gradle.cache.PersistentCache.markValid()

                classesDir = new File(cache.getBaseDir(), scriptBaseClass.getSimpleName());
            }

            if (!cache.isValid() || !classesDir.exists()) {
                scriptCompilationHandler.compileToDir(source, classLoader, classesDir, transformer, scriptBaseClass);
                cache.markValid();
            }
            Class<? extends T> scriptClass = scriptCompilationHandler.loadFromDir(source, classLoader, classesDir,
                    scriptBaseClass);
            return scriptBaseClass.cast(ReflectionUtil.newInstance(scriptClass, new Object[0]));
        }
View Full Code Here

Examples of org.gradle.cache.PersistentCache.markValid()

                        String fileName = aClass.getName().replace('.', '/') + ".class";
                        GFileUtils.copyURLToFile(WorkerProcessClassPathProvider.class.getClassLoader().getResource(fileName),
                                new File(classesDir, fileName));
                    }

                    cache.markValid();
                }

                workerClassPath = Collections.singleton(classesDir);
            }
            return workerClassPath;
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.