incubator-npanday-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RODRIGO LIBERAL <rodw...@hotmail.com>
Subject RE: NPanday dependency execution time doesn't work!
Date Tue, 14 Dec 2010 15:02:04 GMT

Hi,
Well... this is the full story.
First I created, built and then installed the ClassLibrary1 project.
Second  I created ClassLibrary2, and add the dependecy (using add maven artifact) to ClassLibrary1.
then I built and  installed the ClassLibrary2 project.
Third  I created ClassLibrary3, and add the dependecy (using add maven artifact) to ClassLibrary2.
then I built and  installed the ClassLibrary3 project.
Fourth  I created ConsoleApplication1, and add the dependecy (using add maven artifact) to
ClassLibrary3. then I built and  installed the ConsoleApplication1 project.
After all of the process I press in VS2008 SP1 the F5 to start the debuggin process but when
the debugger starts the dependecy with ClassLibrary2 Doesn't WORKS!
So the tree dependency doesn't works.
Honestly I do not find the error I'm generating. Please I need help.

Here are the sources.
 ConsoleAplication1 Solution   using System;  using System.Collections.Generic;  using System.Linq;
 using System.Text;  namespace ConsoleApplication1  {  	class Program  	{  		static void Main(string[]
args)  		{  			ClassLibrary3.Class1 a = new ClassLibrary3.Class1(); 			Console.WriteLine(a.cadena);
		} 	} } 




ClassLibrary3 solution  using System; using System.Collections.Generic; using System.Linq;
using System.Text;  namespace ClassLibrary3 {  	public class Class1  	{  	ClassLibrary2.Class1
a = new ClassLibrary2.Class1();  	public string cadena;  	public Class1() 	{ 	cadena = "Lib3
- " + a.cadena; 	 }  	}  } 




ClassLibrary2 solution  using System; using System.Collections.Generic; using System.Linq;
using System.Text;
namespace ClassLibrary2  { 
	public class Class1  	{  	public String cadena = "LIB 2"; 	public string getCadena() 	 {
	 return this.cadena; 	 } 	 } }  




ClassLibrary1 solution  using System;  using System.Collections.Generic;  using System.Linq;
 using System.Text;   namespace ClassLibrary1  {  	public class Class1 	 {  		int n = 1; 
	}  } 

If anything is missing please let me know
Thanks again.
See ya!
> Date: Sun, 12 Dec 2010 20:32:42 -0800
> From: jocaba@maestrodev.com
> To: npanday-users@incubator.apache.org
> Subject: Re: NPanday dependency execution time doesn't work!
> 
> Hi are the 3 projects built on top of each other? like did you first build 
> 
> ClassLibrary1 and then Build ClassLibrary2 after pointing to ClassLibrary1, and so on?

> Or are they built at the same time? 
> 
> NPanday can support this dependency tree build. 
> 
> It would be great if you can give us the scenario on how you built the project so that
we can have a better idea on what caused the error. 
> 
> Thanks, 
> 
> 
> 
> -- 
> Joe Ocaba 
> 
> ----- Original Message ----- 
> From: "RODRIGO LIBERAL" <rodwash@hotmail.com> 
> To: npanday-users@incubator.apache.org 
> Sent: Friday, December 10, 2010 4:27:37 AM 
> Subject: NPanday dependency execution time doesn't work! 
> 
> 
> I had built a C# console aplication but when I press npanday install in the vs add-in

> i have this issue in the output. 
> This console aplication uses 3 class library in dependency. I add the dependency Using
Add Maven Artifact in the Npanday VS add in 
> 
> ConsoleAplication1 depends ClassLibrary3 
> ClassLibrary3 depends ClassLibrary2 
> ClassLibrary2 depends ClassLibrary1 
> 
> Dec 9, 2010 4:30:08 PM npanday.registry.ConnectionsRepository lazyLoad 
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl

> Dec 9, 2010 4:30:08 PM npanday.registry.ConnectionsRepository lazyLoad 
> INFO: NPANDAY-080-004: Connection Start Up: Time = 16 
> Dec 9, 2010 4:30:08 PM info.aduna.lang.service.ServiceRegistry <init> 
> INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory 
> Dec 9, 2010 4:30:08 PM info.aduna.lang.service.ServiceRegistry <init> 
> INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory 
> Dec 9, 2010 4:30:08 PM npanday.repository.impl.RepositoryConverterImpl convertRepositoryFormatFor

> INFO: NPANDAY-190-002: Converting Project: Artifact ID = ConsoleApplication1, Dependency
Count =1 
> [INFO] [install:install {execution: default-install}] 
> Dec 9, 2010 4:30:09 PM npanday.registry.ConnectionsRepository lazyLoad 
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl

> Dec 9, 2010 4:30:09 PM npanday.registry.ConnectionsRepository lazyLoad 
> INFO: NPANDAY-080-004: Connection Start Up: Time = 47 
> [INFO] NPANDAY-001-007: Installing file into repository: File = C:\Users\rliberal\Documents\Visual
Studio 2008\Projects\ConsoleApplication1\ConsoleApplication1\target\ConsoleApplication1.exe,
Dest Directory = C:\Users\rliberal\.m2\uac\gac_msil\ConsoleApplication1\1.0-SNAPSHOT__.ConsoleApplication1

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-012: Resolving artifact for unresolved dependency: .ClassLibrary3:ClassLibrary3:dotnet-library:1.0-SNAPSHOT

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-024: resolving pom artifact: .ClassLibrary3:ClassLibrary3:pom:1.0-SNAPSHOT

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-018: Not found in UAC, now retrieving artifact from wagon:.ClassLibrary3:ClassLibrary3:dotnet-library:1.0-SNAPSHOT,
Failed UAC Path Check = C:\Users\rliberal\.m2\uac\gac_msil\ClassLibrary3\1.0-SNAPSHOT__.ClassLibrary3\ClassLibrary3.dll

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-012: Resolving artifact for unresolved dependency: .ClassLibrary2:ClassLibrary2:dotnet-library:1.0-SNAPSHOT

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-024: resolving pom artifact: .ClassLibrary2:ClassLibrary2:pom:1.0-SNAPSHOT

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-018: Not found in UAC, now retrieving artifact from wagon:.ClassLibrary2:ClassLibrary2:dotnet-library:1.0-SNAPSHOT,
Failed UAC Path Check = C:\Users\rliberal\.m2\uac\gac_msil\ClassLibrary2\1.0-SNAPSHOT__.ClassLibrary2\ClassLibrary2.dll

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-012: Resolving artifact for unresolved dependency: .ClassLibrary1:ClassLibrary1:dotnet-library:1.0-SNAPSHOT

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-024: resolving pom artifact: .ClassLibrary1:ClassLibrary1:pom:1.0-SNAPSHOT

> Dec 9, 2010 4:30:09 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies

> INFO: NPANDAY-180-018: Not found in UAC, now retrieving artifact from wagon:.ClassLibrary1:ClassLibrary1:dotnet-library:1.0-SNAPSHOT,
Failed UAC Path Check = C:\Users\rliberal\.m2\uac\gac_msil\ClassLibrary1\1.0-SNAPSHOT__.ClassLibrary1\ClassLibrary1.dll

> NPANDAY-001-316: Unable to delete temp bin directory: 
> Error Stack Trace: File C:\Users\rliberal\Documents\Visual Studio 2008\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe
unable to be deleted. 
> 
> 
> The execution is successful 
> 
> But when I execute the proyect 
> In execution time couldn't find ClassLibrary2 ClassLibrary2 .dll doesn't work!!!What
can i do? 
> And this generates a run time error Check my source code. 
> ConsoleAplication1 solution 
> 
> using System; 
> using System.Collections.Generic; 
> using System.Linq; 
> using System.Text; 
> 
> namespace ConsoleApplication1 
> { 
> class Program 
> { 
> static void Main(string[] args) 
> { 
> ClassLibrary3.Class1 a = new ClassLibrary3.Class1(); 
> Console.WriteLine(a.cadena); 
> } 
> } 
> } 
> 
> ClassLibrary3 solution 
> 
> using System; 
> using System.Collections.Generic; 
> using System.Linq; 
> using System.Text; 
> 
> namespace ClassLibrary3 
> { 
> public class Class1 
> { 
> ClassLibrary2.Class1 a = new ClassLibrary2.Class1(); 
> public string cadena; 
> public Class1() 
> { 
> cadena = "Lib3 - " + a.cadena; 
> } 
> } 
> } 
> 
> 
> ClassLibrary2 solution 
> 
> using System; 
> using System.Collections.Generic; 
> using System.Linq; 
> using System.Text; 
> 
> namespace ClassLibrary2 
> { 
> public class Class1 
> { 
> public String cadena = "LIB 2"; 
> public string getCadena() 
> { 
> return this.cadena; 
> } 
> 
> } 
> } 
> 
> 
> Solution ClassLibrary1 
> 
> using System; 
> using System.Collections.Generic; 
> using System.Linq; 
> using System.Text; 
> 
> namespace ClassLibrary1 
> { 
> public class Class1 
> { 
> int n = 1; 
> } 
> } 
> 
> 
> 
> May be recursive dependency in execution time don't work in NPanday ? 
> 
> I need an answer to solve this problem. 
> 
> Thanks. 
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message