-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration to Jena 3.1.1, enabling other file types types.
- Loading branch information
Yev Bronshteyn
committed
Jan 29, 2017
1 parent
d220009
commit 3e44047
Showing
9 changed files
with
322 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,138 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<repositories> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
<build> | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<repositories> | ||
<repository> | ||
<!-- Some jena component releases missing from maven central --> | ||
<id>jena-releases</id> | ||
<name>Apache Jena Releases</name> | ||
<url>https://repository.apache.org/content/repositories/releases</url> | ||
</repository> | ||
<repository> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<id>bintray-yevster-spdx-tools-fork</id> | ||
<name>bintray</name> | ||
<url>https://dl.bintray.com/yevster/spdx-tools-fork</url> | ||
</repository> | ||
<repository> | ||
<id>rdfa-bintray</id> | ||
<url>https://dl.bintray.com/yevster/maven</url> | ||
</repository> | ||
</repositories> | ||
<build> | ||
|
||
<sourceDirectory>src/main/java</sourceDirectory> | ||
<testSourceDirectory>test/main/java</testSourceDirectory> | ||
<testResources> | ||
<testResource> | ||
<directory>test/main/resources</directory> | ||
</testResource> | ||
</testResources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.5.1</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>2.7</version> | ||
<configuration> | ||
<encoding>${project.build.sourceEncoding}</encoding> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<mainClass>spdxedit.Main</mainClass> | ||
</manifest> | ||
</archive> | ||
<descriptorRefs> | ||
<descriptorRef>jar-with-dependencies</descriptorRef> | ||
</descriptorRefs> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>make-assembly</id> | ||
<!-- this is used for inheritance merges --> | ||
<phase>package</phase> | ||
<!-- bind to the packaging phase --> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<groupId>groupId</groupId> | ||
<artifactId>spdx-edit</artifactId> | ||
<version>1.0.1</version> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.7.12</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<version>1.7.12</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.hp.hpl.jena</groupId> | ||
<artifactId>arq</artifactId> | ||
<version>2.8.8</version> | ||
</dependency> | ||
<!-- <dependency> <groupId>org.spdx</groupId> <artifactId>spdx-tools</artifactId> | ||
<version>2.1.0</version> </dependency> --> | ||
<sourceDirectory>src/main/java</sourceDirectory> | ||
<testSourceDirectory>test/main/java</testSourceDirectory> | ||
<testResources> | ||
<testResource> | ||
<directory>test/main/resources</directory> | ||
</testResource> | ||
</testResources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.5.1</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>2.7</version> | ||
<configuration> | ||
<encoding>${project.build.sourceEncoding}</encoding> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<mainClass>spdxedit.Main</mainClass> | ||
</manifest> | ||
</archive> | ||
<descriptorRefs> | ||
<descriptorRef>jar-with-dependencies</descriptorRef> | ||
</descriptorRefs> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>make-assembly</id> | ||
<!-- this is used for inheritance merges --> | ||
<phase>package</phase> | ||
<!-- bind to the packaging phase --> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<groupId>groupId</groupId> | ||
<artifactId>spdx-edit</artifactId> | ||
<version>1.0.1</version> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.7.12</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<version>1.7.12</version> | ||
</dependency> | ||
<dependency> <!--Temporary, pending release of SPDX tools 2.2--> | ||
<groupId>org.spdx</groupId> | ||
<artifactId>spdx-tools</artifactId> | ||
<version>2.2.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.antlr</groupId> | ||
<artifactId>antlr</artifactId> | ||
<version>3.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.controlsfx</groupId> | ||
<artifactId>controlsfx</artifactId> | ||
<version>8.40.12</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.5</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> | ||
<version>16.0.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.jena</groupId> | ||
<artifactId>apache-jena-libs</artifactId> | ||
<version>3.1.1</version> | ||
<type>pom</type> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
|
||
<dependency> | ||
<groupId>com.github.spdx</groupId> | ||
<artifactId>tools</artifactId> | ||
<version>01f8d0d4da</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.controlsfx</groupId> | ||
<artifactId>controlsfx</artifactId> | ||
<version>8.40.12</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</dependencies> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package spdxedit; | ||
|
||
import javafx.scene.control.ChoiceDialog; | ||
import spdxedit.io.FileDataType; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* A dialog that obtains a data type | ||
*/ | ||
public final class IoFileTypeSelectionDialog{ | ||
|
||
public static Optional<FileDataType> getDataType(String title){ | ||
ChoiceDialog<FileDataType> dialog = new ChoiceDialog<>(); | ||
dialog.setTitle(title); | ||
dialog.setHeaderText("Select data file type:"); | ||
dialog.getItems().addAll(FileDataType.values()); | ||
|
||
return dialog.showAndWait(); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.