|
From: <jom...@us...> - 2016-05-13 13:26:31
|
Revision: 1914
http://sourceforge.net/p/jason/svn/1914
Author: jomifred
Date: 2016-05-13 13:26:28 +0000 (Fri, 13 May 2016)
Log Message:
-----------
add doc about namespaces
Modified Paths:
--------------
trunk/src/jason/util/Config.java
Added Paths:
-----------
trunk/doc/modules-namespaces.pdf
Added: trunk/doc/modules-namespaces.pdf
===================================================================
(Binary files differ)
Index: trunk/doc/modules-namespaces.pdf
===================================================================
--- trunk/doc/modules-namespaces.pdf 2016-05-12 13:42:16 UTC (rev 1913)
+++ trunk/doc/modules-namespaces.pdf 2016-05-13 13:26:28 UTC (rev 1914)
Property changes on: trunk/doc/modules-namespaces.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/src/jason/util/Config.java
===================================================================
--- trunk/src/jason/util/Config.java 2016-05-12 13:42:16 UTC (rev 1913)
+++ trunk/src/jason/util/Config.java 2016-05-13 13:26:28 UTC (rev 1914)
@@ -468,12 +468,12 @@
} catch (Exception ex1) {
try {
Properties p = new Properties();
- System.out.println("try 2 "+ex1);
- ex1.printStackTrace();
+ //System.out.println("try 2 "+ex1);
+ //ex1.printStackTrace();
p.load(new FileReader("bin"+getDistPropFile()));
return p.getProperty("version") + "." + p.getProperty("release");
} catch (Exception ex2) {
- System.out.println("*"+ex2);
+ //System.out.println("*"+ex2);
return "?";
}
}
@@ -489,7 +489,7 @@
}
}
- void tryToFixJarFileConf(String jarEntry, String jarFilePrefix, int minSize) {
+ public void tryToFixJarFileConf(String jarEntry, String jarFilePrefix, int minSize) {
String jarFile = getProperty(jarEntry);
if (jarFile == null || !checkJar(jarFile, minSize)) {
System.out.println("Wrong configuration for " + jarFilePrefix + ", current is " + jarFile);
@@ -502,6 +502,18 @@
return;
}
+ // try current dir
+ jarFile = findJarInDirectory(new File("."), jarFilePrefix);
+ if (checkJar(jarFile, minSize)) {
+ try {
+ put(jarEntry, new File(jarFile).getCanonicalFile().getAbsolutePath());
+ System.out.println("found at " + jarFile);
+ return;
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
// try to get from classpath
jarFile = getJarFromClassPath(jarFilePrefix);
if (checkJar(jarFile, minSize)) {
@@ -534,18 +546,6 @@
} catch (Exception e) {}
*/
- // try current dir
- jarFile = findJarInDirectory(new File("."), jarFilePrefix);
- if (checkJar(jarFile, minSize)) {
- try {
- put(jarEntry, new File(jarFile).getCanonicalFile().getAbsolutePath());
- System.out.println("found at " + jarFile);
- return;
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
// try current dir + lib
jarFile = findJarInDirectory(new File(".." + File.separator + "lib"), jarFilePrefix);
if (checkJar(jarFile, minSize)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|