#42 (184) Plugin (phase 1)

open
nobody
None
5
2006-11-08
2006-11-08
No

This patch is usefull to be able to use specific
packages for model classes.

Today we have to put PO classes into package or
'org.compiere.model'

Here we can define a System Property "po.packages" that
refers to a list of packages to look for.

Example :
Create a new Table (Y_Test) and generate his
org.compiere.model.X_Y_Test class.
Then you will extend the X_ class into
com.audaxis.compiere.mfg.MTest

For another table Y_Toast you may want to put this into
com.audaxis.compiere.MTest

Add this line into java startup and similar to JNLP file:
-Dpo.packages=com.audaxis.compiere.mfg,com.audaxis.compiere,org.compiere

so that Compiere will find them.

This is usefull to isolate into Java packages classes
for a same submodule.

You will see more where I want to go with the next
contribution.

Discussion

  • Vincent Harcq

    Vincent Harcq - 2006-11-08

    Patch to MTable.java

     
  • Jorg Janke

    Jorg Janke - 2007-04-20

    Logged In: YES
    user_id=87038
    Originator: NO

    That seems to be be not required - the classpath path should be determined by the EntityType. That will also allow proper packaging

     
  • Vincent Harcq

    Vincent Harcq - 2007-04-22

    Logged In: YES
    user_id=125677
    Originator: YES

    I checked the current code and saw the classpath on entitytype but can not find where this is used.
    How can I register new entity type ?
    How do you will handle Java Webstart be referencing a classpath ? Same question for application server part ?
    Do you plan to add a new classloader ?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks