fix missing AppPath

upd Maven plugin versionid
pull/1/head
reger 10 years ago
parent d7e2f08a89
commit 13cca2b114

@ -56,7 +56,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<version>2.5</version>
<configuration>
<warSourceDirectory>htroot</warSourceDirectory>
</configuration>
@ -65,7 +65,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>3.2</version>
<configuration>
<excludes>
<!-- special exclude for compatibility with ant build script
@ -84,7 +84,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<version>2.5</version>
<configuration>
<archive>
<manifest>
@ -101,7 +101,7 @@
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<version>2.6.1</version>
<configuration>
<filesets>
<fileset>
@ -113,7 +113,7 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<version>2.5.2</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
@ -135,6 +135,7 @@
<!-- compile htroot -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>compile-htroot</id>
@ -159,7 +160,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<version>2.10.1</version>
<configuration>
<reportOutputDirectory>javadoc</reportOutputDirectory>
<author>true</author>
@ -247,7 +248,7 @@
<!-- install jars not found in maven repository to local repository -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<version>2.5.2</version>
<executions>
<execution>

@ -717,7 +717,7 @@ public final class Switchboard extends serverSwitch {
// copy opensearch heuristic config (if not exist)
final File osdConfig = new File(getDataPath(), "DATA/SETTINGS/heuristicopensearch.conf");
if (!osdConfig.exists()) {
final File osdDefaultConfig = new File("defaults/heuristicopensearch.conf");
final File osdDefaultConfig = new File(getAppPath(), "defaults/heuristicopensearch.conf");
this.log.info("heuristic.opensearch list Path = " + osdDefaultConfig.getAbsolutePath());
try {
Files.copy(osdDefaultConfig, osdConfig);

Loading…
Cancel
Save