Opened 13 years ago

Closed 13 years ago

#358 closed enhancement (wontfix)

Distribute a Weblets-compatible JAR

Reported by: john.r.fallows@… Owned by: jkuhnert
Priority: high Milestone: 0.9
Component: General Version: 0.2
Keywords: Cc: john.r.fallows@…
Blocked By: Blocking:

Description

Deliver a JAR supporting the Weblets resource packaging solution. http://weblets.dev.java.net

The structure of the JAR should put the resource files in a "Java Package" directory, using standard Java Packaging rules, reverse domain name.

The contents would be something like:

META-INF/weblets-config.xml org.dojotoolkit.browserio/dojo.js org.dojotoolkit.browserio/...

and the contents of weblets-config.xml would be something like:

<?xml version="1.0" encoding="UTF-8" ?> <weblets-config xmlns="http://weblets.dev.java.net/config" >

<weblet>

<weblet-name>org.dojotoolkit.browserio</weblet-name> <weblet-class>net.java.dev.weblets.packaged.PackagedWeblet?</weblet-class> <weblet-version>0.2.2</weblet-version> <init-param>

<param-name>package</param-name> <param-value>org.dojotoolkit.browserio</param-value>

</init-param>

</weblet>

<weblet-mapping>

<weblet-name>org.dojotoolkit.browserio</weblet-name> <url-pattern>/dojo/*</url-pattern>

</weblet-mapping>

</weblets-config>

assuming Dojo version 0.2.2.

This version string will need to be updated for each release to get independent URLs and maximize browser caching.

Change History (5)

comment:1 Changed 13 years ago by john.r.fallows@…

Sorry, typo above, directory structure should be...

META-INF/weblets-config.xml org/dojotoolkit/browserio/dojo.js org/dojotoolkit/browserio/...

using directories instead of dots in the reverse domain Java Package name.

comment:2 Changed 13 years ago by dylan

Milestone: 0.5

comment:3 Changed 13 years ago by jkuhnert

Owner: changed from alex to jkuhnert
Status: newassigned

comment:4 Changed 13 years ago by jkuhnert

Cc: john.r.fallows@… added
Priority: highnormal

Hi John,

This sounds interesting (I think), though I'm going to have a hard to justifying spending too much time on this unless I were going to use it myself.

How many projects are using weblets currently? Also, do you think this is something you guys could build as a separate library or is there something special within dojo that you need changed?

comment:5 Changed 13 years ago by jkuhnert

Resolution: wontfix
Status: assignedclosed

Going to close out for now unless intial reporter responds back.

Note: See TracTickets for help on using tickets.