[ 
https://issues.apache.org/jira/browse/TILES-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811309#comment-13811309
 ] 

Eric B commented on TILES-573:
------------------------------

I can try to provide a patch in the coming days.  In the meantime, I patched 
Tiles 3.0.1 with an AspectJ patch.  An ugly hack, but functional, on the odd 
chance that anyone needs it before the next Tiles release is made.

AspectJ must be enabled in the pom.xml for weaving jar dependencies:

{code}
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>aspectj-maven-plugin</artifactId>
                                <version>1.2</version>
                                <dependencies>
                                        <dependency>
                                                <groupId>org.aspectj</groupId>
                                                
<artifactId>aspectjrt</artifactId>
                                                
<version>${aspectj.version}</version>
                                        </dependency>
                                        <dependency>
                                                <groupId>org.aspectj</groupId>
                                                
<artifactId>aspectjtools</artifactId>
                                                
<version>${aspectj.version}</version>
                                        </dependency>
                                </dependencies>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>compile</goal>
                                                        
<goal>test-compile</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <outxml>true</outxml>
                                        <aspectLibraries>
                                                <aspectLibrary>
                                                        
<groupId>org.springframework</groupId>
                                                        
<artifactId>spring-aspects</artifactId>
                                                </aspectLibrary>
                                        </aspectLibraries>
                                        <weaveDependencies>
                                                <weaveDependency>
                                                        
<groupId>org.apache.tiles</groupId>
                                                        
<artifactId>tiles-core</artifactId>
                                                </weaveDependency>
                                        </weaveDependencies>
                                        <source>${java.version}</source>
                                        <target>${java.version}</target>
                                </configuration>
                        </plugin>

{code}

> Tiles.xml definitions not reloaded when using expressions
> ---------------------------------------------------------
>
>                 Key: TILES-573
>                 URL: https://issues.apache.org/jira/browse/TILES-573
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core, tiles-template
>    Affects Versions: 3.0.1
>            Reporter: Eric B
>            Assignee: Mck SembWever
>         Attachments: ClearDefinitionsPatch.aj, tiles.xml
>
>
> When tiles.xml contains definitions that use expressions (ex: "REGEXP: 
> (.*)"), the definitions are not reloaded when tiles.xml is changed, even if 
> checkRefresh is enabled.
> tiles.xml definitions are properly reloaded when they contain plain strings, 
> but otherwise they are ignored.
>  



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to