blob: 3688e0535dc0e3dbd2ad3f46d3d8dbcaf2a3be11 [file] [log] [blame]
/*
* Copyright (c) 2015 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.oomph.extractor.lib;
import java.io.IOException;
/**
* @author Eike Stepper
*/
public final class JREValidator
{
public static void main(String[] args) throws IOException
{
JREData jre = new JREData();
if (args.length == 0)
{
System.out.println(jre);
}
else
{
JREData requirement = new JREData(args);
if (!jre.satisfies(requirement))
{
System.exit(-1);
}
}
}
}