From: <lor...@us...> - 2011-09-15 12:32:14
|
Revision: 3272 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3272&view=rev Author: lorenz_b Date: 2011-09-15 12:32:06 +0000 (Thu, 15 Sep 2011) Log Message: ----------- Removed executable status for some files in assembly. Modified Paths: -------------- trunk/interfaces/src/main/assemble/archive.xml trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java Modified: trunk/interfaces/src/main/assemble/archive.xml =================================================================== --- trunk/interfaces/src/main/assemble/archive.xml 2011-09-15 12:30:52 UTC (rev 3271) +++ trunk/interfaces/src/main/assemble/archive.xml 2011-09-15 12:32:06 UTC (rev 3272) @@ -2,7 +2,6 @@ <id>archive</id> <formats> <format>tar.gz</format> - <format>zip</format> </formats> <fileSets> @@ -57,6 +56,7 @@ <include>LICENSE</include> <include>INSTALL</include> </includes> + <fileMode>0644</fileMode> </fileSet> </fileSets> Modified: trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java =================================================================== --- trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java 2011-09-15 12:30:52 UTC (rev 3271) +++ trunk/interfaces/src/main/java/org/dllearner/cli/Enrichment.java 2011-09-15 12:32:06 UTC (rev 3272) @@ -734,7 +734,14 @@ } catch(OptionException e) { System.out.println("The specified graph appears not be a proper URL."); System.exit(0); - } + } + URI resourceURI = null; + try { + resourceURI = (URI) options.valueOf("resource"); + } catch(OptionException e) { + System.out.println("The specified resource appears not be a proper URI."); + System.exit(0); + } LinkedList<String> defaultGraphURIs = new LinkedList<String>(); if(graph != null) { defaultGraphURIs.add(graph.toString()); @@ -757,7 +764,7 @@ // map resource to correct type Entity resource = null; if(options.valueOf("resource") != null) { - resource = new SPARQLTasks(se).guessResourceType(((URI)options.valueOf("resource")).toString(), true); + resource = new SPARQLTasks(se).guessResourceType(resourceURI.toString(), true); if(resource == null) { throw new IllegalArgumentException("Could not determine the type (class, object property or data property) of input resource " + options.valueOf("resource")); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |