1. #1
    Sencha User
    Join Date
    Jul 2010
    Location
    Craiova, Romania
    Posts
    47
    Vote Rating
    0
    sempervivo is on a distinguished road

      0  

    Default gwt-maven-plugin and the filtering issue

    gwt-maven-plugin and the filtering issue


    Hi everybody,
    My problem is the following:
    I used the filtering resources in maven2 but despite the fact that my filtered properties file variables have been filled with the right texts, the gwt-maven-plugin doesn't take them into consideration when compiling and bcause of that, my applications displays the ${variable} texts and not the values from the property file maven2 filtered. What can I do ? How did you resolve this problem ?

    Thank you so much in advance.

  2. #2
    Sencha User
    Join Date
    Jun 2010
    Location
    Cajamarca, Peru
    Posts
    42
    Vote Rating
    0
    cimballi is on a distinguished road

      0  

    Default


    I do not have a concrete solution but I suggest you should try to understand what is happening exactly. Some questions to ask yourself : Is the filtering happening before or after the compilation ? Also, is the plugin working with the filtered resources or the original files ?

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Location
    Craiova, Romania
    Posts
    47
    Vote Rating
    0
    sempervivo is on a distinguished road

      0  

    Default


    From what I observed, the filtering is happening after the compilation and in this case another question arise ? How can I "convince" maven to take care of the filtering before running the maven plugin. Any ideas ?

  4. #4
    Sencha User
    Join Date
    Jun 2010
    Location
    Cajamarca, Peru
    Posts
    42
    Vote Rating
    0
    cimballi is on a distinguished road

      0  

    Default


    In Maven you can configure plugins to execute at a specific phase during the Maven execution, using something like that :
    <executions>
    <execution>
    <id>compile</id>
    <phase>compile</phase>
    <goals>
    <goal>compile</goal>
    </goals>
    </execution>
    </executions>

  5. #5
    Sencha User
    Join Date
    Jul 2010
    Location
    Craiova, Romania
    Posts
    47
    Vote Rating
    0
    sempervivo is on a distinguished road

      0  

    Default


    Yes but in this case I cannot move the gwt compile execution other that in the compiling goal. I'll have to move the resources filtering action also in the compiling goal. I'll give it a try.

  6. #6
    Sencha User
    Join Date
    Jul 2010
    Location
    Craiova, Romania
    Posts
    47
    Vote Rating
    0
    sempervivo is on a distinguished road

      0  

    Default


    The problem is that, the properties file I am filtering is a gwt messages resources bundle file and from what I saw, maven creates a "generated" folder and puts a generated java file based on the properties file found in the root project sources folder and not in the target folder. After that, it incorporates it in the javascript general file.
    This means I have two possibilities:
    1) tell the resources plugin to overwrite the properties file located in the sources folder (I am not cool with that because I will certanly have problems on the next subversion update)
    2) tell gwt-maven-plugin to seek the properties file in the target/classes folder which I think it is impossible

    What do you think ?

Similar Threads

  1. Maven for Ext GWT 2.2
    By extgwtforum in forum Ext GWT: Discussion
    Replies: 18
    Last Post: 26 Nov 2010, 2:42 AM
  2. GWT GXT and Maven howto: Has anything changed?
    By injenierobarsa in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 10 Jun 2010, 10:07 AM
  3. Gxt maven build deploy issue
    By vishnulike@gmail.com in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 3 Feb 2010, 1:19 AM
  4. GXT-Maven-Build (Asynch issue , mvn gwt:run issue)
    By vishnulike@gmail.com in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 3 Feb 2010, 1:17 AM
  5. Using Apache Maven with Ext-GWT
    By posta07 in forum Community Discussion
    Replies: 3
    Last Post: 4 Dec 2008, 7:36 PM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi