Skip to content

Commit

Permalink
Fixed build.xml; improved change notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed Sep 26, 2014
1 parent 04b820b commit eb52b7f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</target>

<target name="bat">
<echo file="${build.dir}/dist/${ant.project.name}.bat">@java -classpath "${ant.project.name}.jar;lib/*" ${main.class} %1</echo>
<echo file="${build.dir}/dist/${ant.project.name}.bat">@java -classpath "${ant.project.name}.jar;lib/*" ${main.class} %1 %2</echo>
</target>

<target name="jar" depends="compile, copy, bat">
Expand Down
2 changes: 1 addition & 1 deletion src/it/albertus/cycles/engine/CyclesMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private void parseSettingProperty( final String key ) throws Exception {
}

private void logChange( final String key, final int defaultValue, final int newValue ) {
log.info( Messages.get( "msg.custom.value.detected", key, newValue, defaultValue ) );
log.info( Messages.get( "msg.custom.value.detected", key, newValue, String.format( "%X", newValue ), defaultValue, String.format( "%X", defaultValue ) ) );
changesCount++;
}

Expand Down
2 changes: 1 addition & 1 deletion src/it/albertus/cycles/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ msg.customizations.applied=Customizations applied, {0} values changed.

err.illegal.value="Value must be between {0} and {1}: {2}={3}
msg.custom.value.detected=Custom value detected: {0}={1} (default: {2}).
msg.custom.value.detected=Custom value detected: {0}={1} [0x{2}] (default: {3} [0x{4}]).
err.wrong.file.size=Wrong {0} file size, expected: {1} bytes, actual: {2} bytes.
Expand Down
2 changes: 1 addition & 1 deletion src/it/albertus/cycles/resources/messages_it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ msg.customizations.applied=Personalizzazioni applicate, {0} valori modificati.

err.illegal.value=Il valore dev''essere compreso tra {0} e {1}: {2}={3}

msg.custom.value.detected=Applicata modifica: {0}={1} (default: {2}).
msg.custom.value.detected=Applicata modifica: {0}={1} [0x{2}] (default: {3} [0x{4}]).

err.wrong.file.size=Dimensione file {0} errata, attesa: {1} byte, effettiva: {2} byte.

Expand Down

0 comments on commit eb52b7f

Please sign in to comment.