Place the library scripts next to the main script
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 25 Feb 2015 11:31:50 +0100
changeset 17892d81494f54b3
parent 1788 c2aafed91d30
child 1790 fa2e91f7d3b5
Place the library scripts next to the main script
rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/AheadOfTime.java
     1.1 --- a/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/AheadOfTime.java	Tue Feb 24 11:19:25 2015 +0100
     1.2 +++ b/rt/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/AheadOfTime.java	Wed Feb 25 11:31:50 2015 +0100
     1.3 @@ -114,7 +114,7 @@
     1.4              if ("provided".equals(a.getScope())) {
     1.5                  continue;
     1.6              }
     1.7 -            File aot = new File(prj.getBuild().getDirectory(), classPathPrefix);
     1.8 +            File aot = new File(mainJavaScript.getParent(), classPathPrefix);
     1.9              aot.mkdirs();
    1.10              File js = new File(aot, n.substring(0, n.length() - 4) + ".js");
    1.11              if (js.exists()) {