Copy all server libs locally

This commit is contained in:
Antonin Delpeuch 2018-09-11 15:05:12 +01:00
parent 802a84e6a1
commit a978317559
2 changed files with 13 additions and 3 deletions

View File

@ -178,7 +178,7 @@ set REFINE_CLASSES_DIR=server\classes
:gotClassesDir
if not "%REFINE_LIB_DIR%" == "" goto gotLibDir
set REFINE_LIB_DIR=server\lib
set REFINE_LIB_DIR=server\target\lib
:gotLibDir
rem ----- Respond to the action ----------------------------------------------------------
@ -212,8 +212,7 @@ echo REFINE_MEMORY = %REFINE_MEMORY%
echo -----------------------
) > support.log
set /p LIB_CLASSPATH=<server/target/classpath.txt
set CLASSPATH="%REFINE_CLASSES_DIR%;%LIB_CLASSPATH%\*"
set CLASSPATH="%REFINE_CLASSES_DIR%;%REFINE_LIB_DIR%\*"
"%JAVA_HOME%\bin\java.exe" -cp %CLASSPATH% %OPTS% -Djava.library.path=%REFINE_LIB_DIR%/native/windows com.google.refine.Refine
goto end

View File

@ -115,6 +115,17 @@
<outputFile>target/classpath.txt</outputFile>
<includeScope>runtime</includeScope>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>target/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>