Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added run-target for ant (needed for NetBeans4)

orbiterbeb652847e42
diff --git a/build.xml b/build.xml
index 0059038d2..4d1dd8278 100644
--- a/build.xml
+++ b/build.xml
@@ -327,4 +327,16 @@
</delete>
</target>
+<!-- run YaCy (needed for NetBeans4) -->
+<target name="run" description="run YaCy">
+ <java classname="yacy">
+ <classpath>
+ <pathelement location="${build}"/>
+ <pathelement location="${lib}/commons-collections.jar" />
+ <pathelement location="${lib}/commons-pool-1.2.jar" />
+ </classpath>
+ <arg line="-start /Users/admin/dev/yacy/trunk"/>
+ </java>
+</target>
+
</project>
diff --git a/source/de/anomic/server/logging/serverLog.java b/source/de/anomic/server/logging/serverLog.java
index 0ab649140..2b7a6ebe3 100644
--- a/source/de/anomic/server/logging/serverLog.java
+++ b/source/de/anomic/server/logging/serverLog.java
@@ -157,7 +157,7 @@ public final class serverLog {
// loading the logger configuration from file
LogManager logManager = LogManager.getLogManager();
logManager.readConfiguration(new FileInputStream(new File(homePath, "yacy.logging")));
-
+
// creating the logging directory
File log = new File("./log/");
if(!log.canRead()) log.mkdir();
diff --git a/source/yacy.java b/source/yacy.java
index 7519aecb2..aa0dd357c 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -127,7 +127,12 @@ public final class yacy {
}
// setting up logging
- serverLog.configureLogging(homePath);
+ try {
+ serverLog.configureLogging(homePath);
+ } catch (IOException e) {
+ System.out.println("could not find logging properties in homePath=" + homePath);
+ e.printStackTrace();
+ }
serverLog.logSystem("STARTUP", copyright);
serverLog.logSystem("STARTUP", hline);
@@ -570,6 +575,8 @@ public final class yacy {
// application wrapper
public static void main(String args[]) {
String applicationRoot = System.getProperty("user.dir");
+ System.out.println("args.length=" + args.length);
+ System.out.print("args=["); for (int i = 0; i < args.length; i++) System.out.print(args[i] + ", "); System.out.println("]");
if ((args.length >= 1) && ((args[0].equals("-startup")) || (args[0].equals("-start")))) {
// normal start-up of yacy
if (args.length == 2) applicationRoot= args[1];