Skip to content

Commit cd4f307

Browse files
committedJul 24, 2024
refactor(server-jetty): load logging.properties from fs not from classpath anymore
1 parent ab5fbc2 commit cd4f307

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed
 

‎server-jetty/pom.xml

+15-3
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,28 @@
132132
</configuration>
133133
</execution>
134134
<execution>
135-
<!-- exec:java@adaptiverag -->
135+
<!-- exec:exec@adaptiverag -->
136136
<id>adaptiverag</id>
137-
<goals><goal>java</goal></goals>
137+
<goals><goal>exec</goal></goals>
138138
<configuration>
139+
<executable>java</executable>
140+
<arguments>
141+
<argument>-Djava.util.logging.config.file=${project.basedir}/logging.properties</argument>
142+
<argument>-classpath</argument>
143+
<classpath/>
144+
<argument>org.bsc.langgraph4j.AdaptiveRAGStreamingServer</argument>
145+
</arguments>
139146
<classpathScope>test</classpathScope>
140-
<mainClass>org.bsc.langgraph4j.AdaptiveRAGStreamingServer</mainClass>
141147
</configuration>
142148
</execution>
143149
</executions>
144150
<configuration>
151+
<systemProperties>
152+
<systemProperty>
153+
<key>java.util.logging.config.file</key>
154+
<value>/Users/bsorrentino/WORKSPACES/GITHUB.me/JAVA/langgraph4j/server-jetty/logging.properties</value>
155+
</systemProperty>
156+
</systemProperties>
145157
</configuration>
146158
<dependencies>
147159
<dependency>

0 commit comments

Comments
 (0)