MaDKit forum

Welcome All !
Please, use explicit topic names when creating new threads. Thanks.

You are not logged in.

#1 Re: HowTo » Add a New Library » 2012-09-03 16:56:22

Hello there,

How do make use of the third.party.libraries property provided in this v.5.0.0.18 test version ?

I tried the obvious :

<property name="third.party.libraries" location="lib/my.jar" /> 

But the compilator is still looking after the package... also how to correctly set the property for multiple entries ?

#2 Re: Feedback » followsymlink ? No ! » 2012-08-16 13:36:52

Sorry, my mistake: the problem doesn't occur in a clean task, but when building the jar.

Let say I have files inside a data/ directory to load at runtime.
These data are supposed to end inside of the build and they come from a source directory.
One safe way to do this is to copy this data/ into the build/, and voilà.
And other way, which looks more clever at first, since (1) those data could be heavy, (2) they are unchanged after or before compilation -- instead of a copy, to make a symlink. Logical isn't it ? Well, not that much when considering ant default behaviour on a delete task : not only the generated files are deleted, but also the content of any symlinked directory : it ends up with a source data/ directory empty.

What do you think of one demo in MK with a customizable and independent build file ?

#3 Feedback » followsymlink ? No ! » 2012-08-15 17:09:38

MrSummers
Replies: 3

Hi,

for madkit v. 5.0.0.17 :
May I suggest to add a followsymlinks="no" to the fileset targeted by a 'clean' task ?
So that only the symlink is removed but no content.
Quite strange that ant manage this this way by default since it is completely unsafe.

#4 Re: HowTo » Add a New Library » 2012-08-15 17:04:48

Yes, so far, it is only for compilation purpose : command line + ant

To expand the topic, a dynamic classloader that could look onto its own jar to load a new set of classes is an interesting feature, if such packaging, obfuscation and distribution are needed.
Most of the trail found for this second topic are on http://stackoverflow.com/ about jar in jar, dynamic jar loading , etc.
or here : http://tutorials.jenkov.com/java-reflec … ading.html.
Since this is about reflection and dynamic classes loading, there are a few security concerns to examine. IMHO, the classes should be signed.

#5 Re: HowTo » Intégrer une nouvelle bibliothèque dans madkit. » 2012-08-06 15:18:12

Désolé, me suis trompé de section.
Je connais la réponse pour la v4.
Ma question concernant Madkit5, est posée ici :
http://www.madkit.net/forum/viewtopic.php?id=456

#6 HowTo » Add a New Library » 2012-08-06 15:16:36

MrSummers
Replies: 5

Hi there,

Madkit went through a slimming program wink

Simple question : How to add a new library into a madkit5 project... without eclipse ?

#7 Re: HowTo » Intégrer une nouvelle bibliothèque dans madkit. » 2012-08-04 22:00:00

Cher amis maniaques du Ant et des build.xml , bonjour wink

La question se pose encore : comment faire pour inclure une nouvelle lib pour compiler un projet... sans Eclipse ?

Board footer