Skip to content

Commit e2bb6e7

Browse files
authored
change hocon extension to .conf (#51)
1 parent 6918559 commit e2bb6e7

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Each of the pipeline configuration files should be placed in the *pipelinesDirec
133133

134134
#### Hocon
135135

136-
The daemon and pipeline configuration files may be written in [Hocon](https://github.com/typesafehub/config) when specified with a _.hocon_ extension.
136+
The daemon and pipeline configuration files may be written in [Hocon](https://github.com/typesafehub/config) when specified with a _.conf extension.
137137

138138
Development
139139
-----------
File renamed without changes.

rpm/fs/etc/rc.d/init.d/mad

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# statistics on data and forwards them to upstream aggregation \
88
# services
99
# processname: mad
10-
# config: /opt/mad/config/config.hocon
10+
# config: /opt/mad/config/config.conf
1111
# pidfile: /var/run/mad/mad.pid
1212

1313
# Source function library.
@@ -19,7 +19,7 @@ dir="/opt/mad"
1919
log_dir="$dir/logs"
2020
exec="/opt/mad/bin/mad"
2121
pid_file="/var/run/mad/mad.pid"
22-
export CONFIG_FILE="/opt/mad/config/config.hocon"
22+
export CONFIG_FILE="/opt/mad/config/config.conf"
2323
export JAVA_HOME="$(dirname $(dirname $(readlink -f $(which java))))"
2424
export JVM_XMS="64m"
2525
export JVM_XMX="1024m"

src/main/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WORKDIR /opt/mad
2323
ENV JVM_XMS="64m"
2424
ENV JVM_XMX="1024m"
2525
ENV LOGBACK_CONFIG="-Dlogback.configurationFile=/opt/mad/config/logback.xml"
26-
ENV APP_PARAMS="/opt/mad/config/config.hocon"
26+
ENV APP_PARAMS="/opt/mad/config/config.conf"
2727
ENV ADDITIONAL_APP_PARAMS=""
2828
ENV ADDITIONAL_JAVA_OPTS=""
2929

src/main/java/com/arpnetworking/metrics/mad/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private static Builder<? extends JsonNodeSource> getFileSourceBuilder(final File
354354
private static final Duration SHUTDOWN_TIMEOUT = Duration.create(30, TimeUnit.SECONDS);
355355
private static final Semaphore SHUTDOWN_SEMAPHORE = new Semaphore(0);
356356
private static final Thread SHUTDOWN_THREAD = new ShutdownThread();
357-
private static final String HOCON_FILE_EXTENSION = ".hocon";
357+
private static final String HOCON_FILE_EXTENSION = ".conf";
358358

359359
private static final class PipelinesLaunchable implements Launchable, Runnable {
360360

src/test/java/com/arpnetworking/configuration/jackson/HoconFileSourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void testFileUnreadable() throws IOException {
6060

6161
@Test
6262
public void testValidHocon() throws IOException {
63-
final File file = new File("./target/tmp/filter/HoconFileSourceTest/testValidHocon.hocon");
63+
final File file = new File("./target/tmp/filter/HoconFileSourceTest/testValidHocon.conf");
6464
Files.write(file.toPath(), "foo:\"bar\"".getBytes(Charsets.UTF_8));
6565
final HoconFileSource source = new HoconFileSource.Builder()
6666
.setFile(file)

0 commit comments

Comments
 (0)