2
I wonder if in java I can specify a tag, or manifest, or something like that for a class or library and be able to query it within the Java code itself
guy :
@version 2.6.5
Class Pessoa {
...
}
and there in another part of the code
if (Class.getVersion(Pessoa) < 2.7)
{
mensage.Aviso("Biblioteca de Pessoas em uma versão antiga. Atualize-o");
}
need this for automatic library updates if the version is lower than the one in FTP would be updated
– HagaHood
there is how I create my own tags, right? I think I will create to implement this functionality. I wanted something ready.... but as there is no... =/
– HagaHood
See, the way you want it, I don’t know anything ready. But if you need this to control library versions, why not use Maven for it? You use or know?
– Douglas Cardoso
use only to resolve dependencies, control version had not seen yet
– HagaHood
Then you can use it for that purpose too. You can define within the <dependencyManagement></dependencyManagement> (pom.xml) tag and specify the version of each lib.
– Douglas Cardoso