mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-22 07:18:51 -05:00
Fix AptTask where the proper apt isn't first on the PATH (ubuntu), and allow it to be set manually if needed as well
This commit is contained in:
parent
2dec1ea7cf
commit
ff95f2d559
@ -25,6 +25,7 @@ import org.apache.tools.ant.types.Commandline;
|
||||
import org.apache.tools.ant.types.Path;
|
||||
import org.apache.tools.ant.util.FileUtils;
|
||||
import org.apache.tools.ant.util.GlobPatternMapper;
|
||||
import org.apache.tools.ant.util.JavaEnvUtils;
|
||||
import org.apache.tools.ant.util.SourceFileScanner;
|
||||
|
||||
import java.io.File;
|
||||
@ -214,7 +215,8 @@ public class AptTask extends Javac
|
||||
}
|
||||
|
||||
// Select the executable (apt) and set fork = true
|
||||
setExecutable("apt");
|
||||
if(getExecutable() == null)
|
||||
setExecutable(JavaEnvUtils.getJdkExecutable("apt"));
|
||||
setFork(true);
|
||||
|
||||
// Specify the code generation output directory to APT
|
||||
|
Loading…
Reference in New Issue
Block a user