Skip to content

The temporary class of the template is output directly under the application dir. #1354

@rakix

Description

@rakix

Are you looking for help?

This is an issue tracker, used to manage and track the development of Play. It is not a support system and so it is not a place to ask questions or get help. If you're not sure if you have found a bug, or if you have a feature request, the best place to start is with either the Discuss Play Forum or Stack Overflow.

Play Version (1.5.x / etc)

1.6.0

Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

windows/Centos

JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)

OpenJDK 11

The temporary class of the groovy template will be output directly under the application dir.
I want them to be output to the tmp dir.

@@ -118,6 +118,7 @@ public class GroovyTemplate extends BaseTemplate {
     protected CompilerConfiguration setUpCompilerConfiguration() {
         CompilerConfiguration compilerConfiguration = new CompilerConfiguration();
         compilerConfiguration.setSourceEncoding("utf-8"); // ouf
+        compilerConfiguration.setTargetDirectory("tmp");
         return compilerConfiguration;
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions