Package org.jitterbit.util.file

Examples of org.jitterbit.util.file.Folder


    private final AgePreferenceListener agePrefListener;
   
    public ProjectTestHistoryImpl(ManagedProject project) {
        assert (project != null) : "project cannot be null";
        this.project = project;
        Folder root = getRootDirectory(project);
        TestResultHistoryFactory factory = TestResultHistoryFactory.newFileBasedHistoryFactory(root);
        testTransformationHistory = factory.newTestTransformationHistory();
        testOperationHistory = factory.newTestOperationHistory();
        loadSourceHistory = factory.newLoadSourceHistory();
        testConnectionHistory = factory.newTestConnectionHistory();
View Full Code Here


*/
public final class JsonToXsdGeneratorTest {

    public static void main(String[] args) throws Exception {
        File jsonFile = new File("Z:\\jitterbit\\other\\dev\\JSON\\nested_simple_array.json");
        Folder outputFolder = Folder.parentOf(jsonFile);
        JsonToXsdGenerator g = new JsonToXsdGenerator();
        g.setDeleteTempFilesWhenDone(false);
        g.generateXsd(jsonFile, outputFolder);
    }
View Full Code Here

    private final Folder root;

    private final Map<String, LdapStructureCache> caches;
   
    public LdapStructureServerCacheImpl(File clientCacheRoot) {
        this.root = new Folder(clientCacheRoot, LdapStructureCache.ID);
        root.createOnDisk();
        caches = Maps.newHashMap();
        init();
    }
View Full Code Here

        }
        return roots;
    }

    private Map<IntegrationEntity, EntityRoot> createTypeRoot(EntityType type) {
        Folder root = getTypeFolder(type);
        deleteEmptyFolders(root);
        return Maps.newHashMap();
    }
View Full Code Here

    }

    private List<String> createFilteredSettingsPaths(File projectFolder, boolean includeTestData) {
        List<String> paths = Lists.newArrayList();
        if (!includeTestData) {
            Folder folder = ProjectFolders.getSettingsFolder(projectFolder);
            paths.add(folder.getAbsolutePath());
            // HACK: Get these strings from somewhere in the EntityResources package
            for (String sub : new String[] {"Entity", "Transformation", "Resources"}) {
                folder = folder.subFolder(sub);
                paths.add(folder.getAbsolutePath());
            }
        }
        return paths;
    }
View Full Code Here

        notifyListenersOnAdd(result);
    }

    private PersistorStore<T> getStoreForResult(T toStore) {
        if (PersistTestResultsProperty.ENABLED) {
            Folder subjectDir = getSubjectFolderForResult(toStore);
            File resultDir = subjectDir.getFile(dateFolderFormat.format(new Date(toStore.getTimestamp())));
            if (ensureDirExists(resultDir)) {
                return new XmlPersistorStore<T>(resultDir);
            }
        }
        return new NonFunctioningPersistorStore<T>();
View Full Code Here

    }

    protected final void deleteAllResultsForSubject(Object subjectId) {
        boolean deleted;
        synchronized (lock) {
            Folder folder = getSubjectFolder(subjectId);
            if (!folder.exists()) {
                return;
            }
            deleted = folder.delete();
        }
        processFolderDeletionResult(subjectId, deleted);
    }
View Full Code Here

            if (isCancelled()) {
                return;
            }
            updateStatus(root, ++numberOfCheckedFolders);
            List<File> folders = null;
            for (File file : new Folder(root).listFiles(fileFilter)) {
                if (file.isDirectory()) {
                    if (recursively) {
                        if (folders == null) {
                            folders = new ArrayList<File>();
                        }
View Full Code Here

        private final Object lock;

        public EntityRoot(IntegrationEntity entity, File location) {
            this.entity = entity;
            this.location = new Folder(location);
            this.location.createOnDisk();
            files = KMap.hash();
            lock = new Object();
            load();
        }
View Full Code Here

        private XmlPersistor root;

        public Files(EntityType type, Folder location) {
            this.type = type;
            Folder parent = location.subFolder(type.name());
            xmlFile = parent.getFile(type.name() + ".xml");
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.util.file.Folder

Copyright © 2018 www.massapicom. 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.