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

View File

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