Can I configure GWT to create cache files in a place other than the user's home folder?

I have a big project that I am compiling using GWT. During this process, GWT generates some cache files in C:\Documents and Settings\[UserDir]\Local Settings\Temp\. For example:

gwt60627byte-cache (86,321 KB)
gwt60628byte-cache (4,445 KB)
gwt60629byte-cache (53,773 KB)
gwt60696byte-cache (8,111 KB)
gwt60697byte-cache (572,777 KB)

I know that GWT performance is not very good, and not so much to speed it up, but my project is located on drive D: it is faster than C :, so I want to move these cache files to the same drive.

But this is not the main reason. I am also concerned about the size of these files that are reported on the free space that I left in C: (which is not much). I am not yet doing a full compilation of the project, but when I do this, I do not think that the HDD will handle it.

How can I create these cache files elsewhere?

Thank.

+3
2

GWT -workDir, temp. , - .

+3

-workDir GWT , "gwt-unitCache- *".

, GWT ( , "gwt * byte-cache", "uiBinder *" "ImageResourceGenerator *.png" ), "java.io.tmpdir" Java- (, "-Djava.io.tmpdir =/path/to/custom/temp/directory".

Maven, <extraJvmArgs> < > gwt-maven-plugin, < > <pluginManagement> , :

.../...

<pluginManagement>
    <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>gwt-maven-plugin</artifactId>
          <version>${gwt.maven.plugin.version}</version>
          <configuration>
            <extraJvmArgs>-Djava.io.tmpdir=${project.build.directory}</extraJvmArgs>
          </configuration>
        </plugin>
    </plugins>
</pluginManagement>

.../...

GWT ${project.build.directory}, "" GWT.

<extraJvmArgs> , JVM, GWT, , "-Xmx1024m".

+10

Source: https://habr.com/ru/post/1727355/


All Articles