Skip to content

Commit

Permalink
added run-target for ant (needed for NetBeans4)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@274 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Jun 13, 2005
1 parent a2e5018 commit beb6528
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
12 changes: 12 additions & 0 deletions build.xml
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion source/de/anomic/server/logging/serverLog.java
Expand Up @@ -157,7 +157,7 @@ public static final void configureLogging(String homePath) throws SecurityExcept
// 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();
Expand Down
9 changes: 8 additions & 1 deletion source/yacy.java
Expand Up @@ -127,7 +127,12 @@ private static void startup(String homePath) {
}

// 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);

Expand Down Expand Up @@ -570,6 +575,8 @@ private static void deleteStopwords(String homePath) {
// 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];
Expand Down

0 comments on commit beb6528

Please sign in to comment.