[ 
http://mifosforge.jira.com/browse/MIFOS-3925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61246#action_61246
 ] 

Michael Vorburger commented on MIFOS-3925:
------------------------------------------

I think I've solved this (the original issue/title, as per Description) nicely 
- and hope you can integrate it - this should bring some important "workspace" 
improvement (and, as a first step, is a good basis for further "modularity" 
work I'm hoping to find time for).

So those *.ftl src were in 
userInterface\src\main\resources\org\mifos\ui\freemarker\core but should be in 
userInterface\src\main\webapp\WEB-INF\freemarker, because they are expected to 
end up in WEB-INF\freemarker in the WAR (so 
application\target\mifos-webapp\WEB-INF\freemarker in the IDE).

Have noticed the 
userInterface\src\main\resources\org\mifos\ui\localizedProperties also, and how 
there is some "magic" around that in the build, but didn't fully understand 
what's going on there, and don't have any issue with it, so that is left as-is 
here.

This clean-up may also make the Eclipse IDE workspace slightly faster, as it 
will avoid unnecessary resource copying, e.g. 
application\target\mifos-webapp\WEB-INF\classes\WEB-INF (yes, double WEB-INF).

In order for an Eclipse Clean not to wipe out e.g. 
application\target\mifos-webapp\WEB-INF\lib at full project rebuilds (and run 
into java.lang.NoClassDefFoundError: 
org/springframework/web/context/ContextLoaderListener & 
java.lang.ClassNotFoundException: 
net.sf.ehcache.constructs.web.ShutdownListener & 
java.lang.ClassNotFoundException: 
org.eclipse.birt.report.listener.ViewerServletContextListener), I couldn’t use 
just application\src\main\webapp and userInterface\src\main\webapp as source 
folders, but had to set-up application\src\main\webapp\pages & 
application\src\main\WEB-INF & userInterface\src\main\webapp\pages & 
userInterface\src\main\webapp\WEB-INF.

Proposed changes in github, see http://github.com/meonkeys/mifos-head/pull/1 & 
http://github.com/vorburger/mifos-head/compare/MIFOS-3925__BetterEclipseBuildPath
 ... can somebody review and take over this JIRA for integration?

> userInterface/src/main/webapp/ not configured in WTP
> ----------------------------------------------------
>
>                 Key: MIFOS-3925
>                 URL: http://mifosforge.jira.com/browse/MIFOS-3925
>             Project: mifos
>          Issue Type: Bug
>          Components: Build and Testing
>            Reporter: Michael Vorburger
>            Assignee: Michael Vorburger
>            Priority: Major
>             Fix For: Gazelle Backlog
>
>
> Resources in userInterface/src/main/webapp, e.g. 
> /userInterface/src/main/webapp/pages/css/maincss.css do not seem to be 
> available in the recommended WTP-based set-up, because they are not copied to 
> application/target/mifos-webapp (where WTP looks for the "WAR").
> It may work for some people after CLI mvn.  This is very cumbersome of 
> course, as it would mean that you have to do CLI mvn after each change in 
> userInterface/src/main/webapp - not acceptable.
> I've tried simply adding a new Eclipse Project Properties Java Build Path 
> Source folder userInterface/src/main/webapp -> 
> application/target/mifos-webapp, but that doesn't work due to an error 
> message "Cannot nest output folder 
> 'vorburger-mifos-head/application/target/mifos-webapp/WEB-INF/freemarker' 
> inside output folder 'vorburger-mifos-head/application/target/mifos-webapp'" 
> -- which doesn't really make sense to me - may be it's obvious what Eclipse 
> is trying to say and I'm just too tired, but I don't yet get it.
> PS: Personally I would set-up the entire workspace differently, via a fully 
> Classpath-based embedded Jetty container.  (Happy to illustrate on a branch, 
> if there is interest in re-integrating - doesn't seem to meet much interest 
> though?)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to