I don't think so , it's not fantastic!!.
They do more great things in AppFuses Maven  Plugin , take a look at their
source code , you believe them. :)




On Wed, Feb 11, 2009 at 2:46 PM, Ice-Man <derlon.aliend...@gmail.com> wrote:

>        Hi, Reza,
>
>   What a fantastic realizing!!! ;-))
>   It would be so great/outstanding if AppFuse's forks implement this
> feature!! :D
>
> Ice-Man
>
> 2009/2/11 Reza Farshi <reza.far...@gmail.com>
>
> Dear matt,
>> In appfue-maven-plugin in org.appfuse.mojo.installer.InstallSourceMojo
>> class in
>>
>>        private List addModuleDependencies(List dependencies, String
>> moduleName, String moduleLocation) method
>>
>>
>> this method try to get pom.xml of exsiting modules in current project  :
>>
>>     Get get = (Get)AntUtils.createProject().createTask("get");
>>         get.setSrc(pomLocation);
>>         get.setDest(pom);
>>         get.setUsername("guest");
>>         get.setPassword("");
>>         get.execute();
>>
>> while  ant get task have no any idea about system proxies so if we parse
>> and obtain proxy setting
>> form  maven settings.xml and apply in code above  so peoples behind proxy
>> thankfully
>> will run appfuse:full-source command with no problem.
>>
>> Here I wrote some code to loading settings.xml file , I'll try to complete
>> it later.
>>
>> //loadig mvaen settings.xml
>>
>>   File settingsFile = new File( System.getProperty( "user.home" ),
>> ".m2/settings.xml" );
>>
>>     if ( !settingsFile.exists() )
>>       {
>>             settingsFile = new File( System.getProperty( "ant.home" ),
>> "etc/settings.xml" );
>>        }
>>         if ( !settingsFile.exists() )
>>         { // look in ${M2_HOME}/conf
>>            List env =
>> org.apache.tools.ant.taskdefs.Execute.getProcEnvironment();
>>             for ( Iterator iter = env.iterator(); iter.hasNext(); )
>>                String var = (String) iter.next();
>>                 if ( var.startsWith( "M2_HOME=" ) )
>>                 {
>>                     String m2_home = var.substring( "M2_HOME=".length() );
>>                     settingsFile = new File( m2_home, "conf/settings.xml"
>> );
>>                     break;
>>                 }
>>             }
>>        }
>>
>>       if ( settingsFile.exists() )
>>          {
>>
>>     // parsing settigs.xml file goes here ,
>>
>>
>>
>>     }
>>
>> On Mon, Feb 9, 2009 at 7:08 PM, Marcello Teodori <
>> marcello.teod...@gmail.com> wrote:
>>
>>>
>>>
>>> mraible wrote:
>>> >
>>> > The easiest thing to do might be to copy your source to a laptop, walk
>>> > to a Starbucks, and then run full-source there. ;-)
>>> >
>>>
>>> Great! I guess you've found what could easily be the definitive solution
>>> for
>>> maven as a whole: a partnership with starbucks so that you bring your
>>> source
>>> code there, download all the dependencies without any struggle with
>>> corporate proxies, especially the NTLM ones, and have a good coffee in
>>> the
>>> meanwhile! :D
>>>
>>> --m
>>> --
>>> View this message in context:
>>> http://www.nabble.com/appfuse%3Afull-source-problem-tp21911872s2369p21915360.html
>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>
>>
>>
>> --
>> Reza Farshi
>>
>
>


-- 
Reza Farshi

Reply via email to