Comments (7)
Great. I'll leave this open then.
from elemento.
But this is totally NOT an elemento problem, it's either a maven or an IntelliJ issue not copying resources to the target folder (expected to be in the classpath). OTOH, IntelliJ updates the resources correctly when you "Build Project" which is the expected behavior for IntelliJ, and eclipse compiles constantly so it will probably copy the resource constantly too (not checked).
from elemento.
AFAICT the annotation processing API only supports reading resources from the class path: javax.annotation.processing.Filer.getResource(JavaFileManager.Location location, CharSequence pkg, CharSequence relativeName)
using javax.tools.StandardLocation.CLASS_PATH
as location.
I've tried different locations w/o success. As a workaround you can place your templates into src/main/java
and configure HTML files as resources:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.html</include>
</includes>
</resource>
</resources>
</build>
from elemento.
@vegegoku Does this work for you?
from elemento.
with this elemento can locate the file and generate the template, but yet this does not solve the stale copy of the file issue, since this does exactly what putting the file into the resources folder, it is still copying the file to the target folder, and intellij wont update the file after the edit until the rebuild project is triggered.
the actual solution for this is to detect the file without copying to the target folder.
i might help in this one and work on it later, and if i got a solution i will make PR. would you accept that?
from elemento.
I agree. We should not try to add "magic" into Elemento to workaround maven / IntelliJ issues or to support non standard builds.
from elemento.
TBH, i prefer the template to live in the resources folder, and also with the current issue with APT and resources even if we put the template in the sources folder instead of the resources folder we will still need to fire the apt processors, which means we are not really solving the issue.
from elemento.
Related Issues (20)
- Add load event (needed for iframe load)
- Chrome 69 breaks org.jboss.gwt.elemento.core.BodyObserver
- NullPointerException thrown in TemplatedProcessor HOT 3
- APT Processors (for templates) don't work well in Eclipse HOT 8
- CSS glitch in samples (missing checkbox) HOT 1
- J2CL / GWT3 compatibility
- Naming
- Remove deprecated classes / methods
- Duplicate finder methods
- Documentation
- Update samples HOT 1
- Move templates to crysknife HOT 2
- Widgets.asElement does not wire up events HOT 2
- Java 8 compatibility? HOT 1
- I am facing a bug in Elemento wp Plugin HOT 4
- elemento-core 1.0.1 has a dependency to gwt-safehtml with SNAPSHOT version HOT 1
- Compile on windows10 HOT 2
- https://www.w3schools.com/tags/att_input_list.asp HOT 5
- Not all examples works at https://hal.github.io/elemento-samples/ HOT 2
- API documentation links in readme.md are not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elemento.