All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.cli.converter.EclipseProjectFolder Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.artemis.cli.converter;

import java.io.File;

import com.beust.jcommander.IStringConverter;

public class EclipseProjectFolder implements IStringConverter {

	@Override
	public File convert(String value) {
		File folder = new File(value);
		
		if (!folder.isDirectory())
			throw new RuntimeException(value + " is not a folder.");
		
		if (!new File(folder, ".project").exists())
			throw new RuntimeException("Not an eclipse project: " + folder);
			
		
		return folder;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy