question on access to resources

2 views
Skip to first unread message

Terry Hodgson

unread,
Aug 6, 2012, 9:46:40 AM8/6/12
to math-descri...@googlegroups.com

Hi Alex.   The mde-sdk jar file bundles everything, including the resources.   So, are the changes to the RESOURCE_PATH in MdeSettings and the ResourceUtil still needed if you're going to be sourcing everything from the jar bundle?  
 
Thanks,
Terry
On Thu, Aug 2, 2012 at 11:59 AM, Alex Yang <alexm...@gmail.com> wrote:

Hi Rom,

All my changes made to MDE are addressing the resource file access issue. The original  MDE was written as a desktop application, resource is accessed as a local file system. In a web application environment, changes were made to 2 functions: resolvePathTo() and getResourceAsSource(), I commented out old code. I no longer access resource as a file in the local director, but instead treat it as a package path and let the class loader dynamically load things based on the package path. The following list details changes to files and functions.

I made a new mde.jar containing all mde classes/res and above changes for the MDE web app. It can be put in lib along with batik/junit jars.

1.       src\gov\nasa\ial\mde\properties\MdeSettings.java

public static final String  RESOURCES_PATH = "gov/nasa/ial/mde/util/res/resources/";

2.       gov\nasa\ial\mde\util\ResourceUtil.java

 
 
On Wednesday, August 1, 2012 10:48:55 AM UTC-7, Rom wrote:
Alex,

We'd like to start taking advantage of the great work you've been doing sooner rather than later. Towards that end, I propose that we view your ongoing work as two separate products - one is a standalone web service that provides the descriptions, svg, and mp3 via an API. And the other is a web based (HTML5) client application that mimics the existing functionality of the MathTrax Java swing application. So I'd like to wrap up the web service work before getting too far into the interactive HTML5 client application.

I know it won't be as much fun, but you're so close to finishing the web service! Leaving aside the deployment to Cloud Foundry, it would be great if we could leverage the work that Terry has been doing in the MDE project, https://github.com/benetech/mde , and create an ant target to that project that will create the jar that can be used in the web service.

Can you please make a new post in this group that outlines the path/resource changes you had to make to the MDE code to get it to work in the web service? That will allow us to get moving on creating the alternate jar file.


--
You received this message because you are subscribed to the Google Groups "Math Description Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/math-description-engine/-/bG_KeN6sC-YJ.
To post to this group, send email to math-descri...@googlegroups.com.
To unsubscribe from this group, send email to math-description-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/math-description-engine?hl=en.


Reply all
Reply to author
Forward
0 new messages