Bugs item #610552, was opened at 2002-09-17 06:51
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=610552&group_id=22866

Category: JBossServer
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexei Yudichev (sflexus)
Assigned to: Nobody/Anonymous (nobody)
Summary: PrefixDeploymentSorter and non-digit URL

Initial Comment:
If using 
org.jboss.deployment.scanner.PrefixDeploymentSorter 
those files beginning with non-digit are deployed FIRST, not LAST 
as declared in comments inside jboss-service.xml.
This is 
because private int getPrefixValue(URL url) returns -1 if no digital 
prefix exists. It should return Integer.MAX_VALUE or something.

----------------------------------------------------------------------

>Comment By: Larry Sanderson (lsanders)
Date: 2002-09-17 09:08

Message:
Logged In: YES 
user_id=379453

This was my bad - the original implementation of this was to 
deploy prefixed first (as all the comments indicate).  

Then it was agreed to change this to prefixed last.  I changed 
the code, but not the docs.  

I'll check in new docs today.

----------------------------------------------------------------------

Comment By: Christian Riege (lqd)
Date: 2002-09-17 07:35

Message:
Logged In: YES 
user_id=176671

The question is if this is a bug in the "documentation" or
in the "implementation" :). The JavaDoc comments in
PrefixDeploymentSorter are misleading here, too as they state:

"...  If there is no leading digits, then they will compare
as less than any name with leading digits."

and a few lines further down:

"Ex.these names are in ascending order:
 001test.jar, 5test.rar, 5foo.jar, 120bar.jar, test.sar,
crap.ear )"

which contradicts the previous statement.

Which one is the "correct" behaviour here? I would opt for
the "deploy with no prefix first" strategy (as it is
implemted ATM) and fix the comments in the .xml file.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=610552&group_id=22866


-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! 
Open Source & Linux Developers, register now for the AMD Developer 
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to