Mail Archive Home | enhydra List | January 2004 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi,
"deploy" target doesn't clean classes directory (that
would create "constant recompilation of java files" problem) on it's
preparation.
Target "deploy" compiles (changed) java files to "classes" directory, copies
resource files (if Content Deploy checkbox is enabled) to "classes"
directory and creates applications jar file. If your resource files are
already placed (copied previously (previous deploy target calls with
Content Deploy checkbox enabled)) in classes directory they will eventually
be included in applications jar file.
NOTE: The similar problem could occur if you exclude some resource extension
that were previously included (resource files would remain in your classes
directory and they will be included in applications jar file).
Quick solution of problem
1. Delete resource files from your classes directory. And "deploy" target
will create applications jar file with "selected" resources (only).
2. Run your application with "Rebuild" (not "Make") build target ("just
once" because this target firstly cleans everything and then builds all
from scratch (compiles all java files again, etc))
Changing build target in steps:
- Project Properties dialog (Project (Main Menu) -> Project
Properties)
- Select "Run" tab
- select Your runtime configuration (hopefully the only one)
- click on "Edit" button
- chose "Rebuild" option in "Build target" combo
- close both dialogs by clicking on "OK" button
After running the application You will get applications jar file with
"selected" resources (only). Then you can change back (to Make) Build target
of your project.
Best regards,
Sinisa Milosevic
Together Serbia
----- Original Message -----
From: "Petr Stehlik" <pstehlik@xxxxxxxxxx>
To: <enhydra@xxxxxxxxxxx>
Sent: Thursday, January 22, 2004 10:08 AM
Subject: [enhydra] ant/kelp 5.1 problem - resources dir always deployed
> Hi,
>
> I don't want to deploy the resources folder so I disabled the Content
> Deploy checkbox in the Kelp Deploy dialog. Didn't help. So I went ahead
> and removed all content file extensions that were to be copied. Didn't
> help. So I edited the build.xml directly, found out that the "content"
> target is not called by anybody but for sure removed the whole target.
> Did not help.
>
> The classes/package/resources still contains the package/resources
> files. This is so annoying as I have 30 GB of data symlinked to the
> resources dir for runtime tests. You can imagine the size of deployed
> jar file then.
>
> Why disabling of the Content Deploy checkbox does not work? Can it be
> fixed, please?
>
> Petr
>
>
>
>
----------------------------------------------------------------------------
----
>
> --
> You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx
mailing list.
> To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx
> For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.