Permalink
Browse files

Append ".exe" on windows to locate install4jc binary

  • Loading branch information...
1 parent c26c499 commit 46aed0db3d3d12e5f47c324f3f9788056414b598 @jdillon jdillon committed Sep 14, 2012
@@ -18,6 +18,7 @@
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.apache.tools.ant.taskdefs.ExecTask;
+import org.codehaus.plexus.util.Os;
import org.sonatype.aether.util.version.GenericVersionScheme;
import org.sonatype.aether.version.Version;
import org.sonatype.aether.version.VersionConstraint;
@@ -68,7 +69,8 @@ protected void doExecute() throws Exception {
log.debug("install4j installation directory: " + installDir);
- File install4jc = new File(installDir, "bin/install4jc");
+ boolean windows = Os.isFamily(Os.FAMILY_WINDOWS);
+ File install4jc = new File(installDir, "bin/install4jc" + (windows ? ".exe" : ""));
if (!install4jc.exists()) {
log.warn("Missing install4j compiler executable: " + install4jc);

0 comments on commit 46aed0d

Please sign in to comment.