0 Replies Latest reply on Apr 16, 2016 10:00 PM by Hristo Stoyanov

    [4.0.0] Generated java files goes into wrong folder?

    Hristo Stoyanov Master

      Hi I am building a "myapp" errai 4 project with standard maven/gradle WAR structure. I noticed that Errai generated a lot of *.java classes back into my sources webapp folder: web-app/src/webapp/classes

       

       

      Here is the captured compile logs. As you can see there is no output parameter pointing back to my webapp source folder.  Not sure why this started happening with Errai 4. Or is it the switch to GWT 2.8?

       

      Starting process 'command '/usr/java/jdk1.8.0_77/bin/java''. Working directory: /projects/myapp/web-app Command: /usr/java/jdk1.8.0_77/bin/java -Dgwt.persistentunitcachedir=/projects/myapp/web-app/build/gwt/cache -Xms512M -Xmx1024M -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /projects/myapp/web-app/src/main/java:/projects/myapp/web-app/build/resources/main:/projects/myapp/web-shared/src/main/java:/projects/myapp/web-shared/build/resources/main:...<many other>....:/projects/myapp/web-app/build/classes/main com.google.gwt.dev.Compiler -logLevel INFO -war /projects/myapp/web-app/build/gwt/out -extra /projects/myapp/web-app/build/gwt/extra -workDir /projects/myapp/web-app/build/gwt/work -gen /projects/myapp/web-app/build/gwt/gen -localWorkers 2 -draftCompile -optimize 48 -XdisableCastChecking -style DETAILED -strict -XenableClosureCompiler com.myapp.web.myappAppDev

      Successfully started process 'command '/usr/java/jdk1.8.0_77/bin/java''

      Compiling module com.myapp.web.myappAppDev

         Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'

            Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

               Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  Generating Marshallers Bootstrapper...

                  Checking ErraiApp.properties for configured types ...

         Computing all possible rebind results for 'org.jboss.errai.ioc.client.container.IOCEnvironment'

            Rebinding org.jboss.errai.ioc.client.container.IOCEnvironment

               Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCEnvironmentGenerator

                  Generating Extensions Bootstrapper...

         Computing all possible rebind results for 'org.jboss.errai.ioc.client.Bootstrapper'

            Rebinding org.jboss.errai.ioc.client.Bootstrapper

               Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

                  generating ioc bootstrapping code...

         Compiling 1 permutation

            Compiling permutation 0...

         Compile of permutations succeeded

         Compilation succeeded -- 179.977s

      Linking into /projects/myapp/web-app/build/gwt/out/myappApp; Writing extras to /projects/myapp/web-app/build/gwt/extra/myappApp

         Link succeeded

         Linking succeeded -- 1.625s