[jira] Commented: (NPANDAY-369) Building NPanday on 64bit operating system OR building and testing other x86-apps on 64bit systems
[ https://issues.apache.org/jira/browse/NPANDAY-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12992954#comment-12992954 ] Lars Corneliussen commented on NPANDAY-369: --- h1. Spec * Extend npanday-settings.xsd ** Extend xsd with npandaySettings/vendors/vendor/framework/architecture ** Extend xsd with npandaySettings/defaultSetup/architecture * Extend NPanday.Plugin.Settings-Plugin ** Fill npandaySettings/architecture (x86 / x86_64) ** Default defaultSetup/architecture to the OS architecture ** Find both the X86 and the 64bit versions of the Framework, and in case add both frameworks per vendor version * Extend Components ** Respect frameworkArchitecture in CompilerRequirements, NetExecutableFactory, ... * Extend Plugins ** Support parameter frameworkArchitecture in all Mojos using the NetExecutableFactory (aspx, compile, link, resgen, webapp, wsdl, xsd, ..?) * Update documentation ** for all plugins ** Introduce a 64bit-information-page explaining the different options and obstacles * Update NPanday/dotnet to consequently build for x86 * Support dedictaded x86 test runs in maven-test-plugin, using nunit-console-x86.exe *(DONE)* Building NPanday on 64bit operating system OR building and testing other x86-apps on 64bit systems -- Key: NPANDAY-369 URL: https://issues.apache.org/jira/browse/NPANDAY-369 Project: NPanday Issue Type: Bug Components: Development Setup Affects Versions: 1.3-incubating Environment: Win 7, x64, VS 2010 only Reporter: Lars Corneliussen Assignee: Lars Corneliussen Labels: build, nunit, test, x64, x86 Fix For: 2.0 Building NPanday from source (including tests) on 64bit windows fails. The problem is, that all resources are built with the 64-bit version of the .NET Framework tools. Also then, the nunit-console runs everything (including MSBUILD) in 64 bit. NPanday itself should allways be built using x86. It should furthermore have strong support for building both 32bit and 64bit apps on 64bit systems. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira
svn commit: r1069505 - in /incubator/npanday/trunk/components: dotnet-executable/src/main/java/npanday/executable/compiler/impl/ dotnet-executable/src/main/java/npanday/executable/impl/ dotnet-vendor/
Author: lcorneliussen Date: Thu Feb 10 18:05:33 2011 New Revision: 1069505 URL: http://svn.apache.org/viewvc?rev=1069505view=rev Log: Refactored how executables paths are found. Also improved the logging. Modified: incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/BaseCompiler.java incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/NetExecutableFactoryImpl.java incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/ThreadedNetExecutable.java incubator/npanday/trunk/components/dotnet-vendor/src/main/java/npanday/vendor/VendorInfoRepository.java incubator/npanday/trunk/components/dotnet-vendor/src/main/java/npanday/vendor/impl/SettingsRepository.java incubator/npanday/trunk/components/dotnet-vendor/src/main/java/npanday/vendor/impl/VendorInfoRepositoryImpl.java incubator/npanday/trunk/components/dotnet-vendor/src/main/java/npanday/vendor/impl/VendorInfoTransitionRuleFactory.java Modified: incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/BaseCompiler.java URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/BaseCompiler.java?rev=1069505r1=1069504r2=1069505view=diff == --- incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/BaseCompiler.java (original) +++ incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/BaseCompiler.java Thu Feb 10 18:05:33 2011 @@ -101,10 +101,12 @@ abstract class BaseCompiler implements C File exe = new File( executablePath + File.separator + executable + .exe); if ( exe.exists() ) { +logger.info(NPANDAY-068-005: Choose executable path for + executable + .exe: + executablePath); return new File(executablePath); } } } +logger.warn(NPANDAY-068-006: Did not find path for + executable + .exe in + executablePaths); return null; } Modified: incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java?rev=1069505r1=1069504r2=1069505view=diff == --- incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java (original) +++ incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultNetExecutable.java Thu Feb 10 18:05:33 2011 @@ -79,10 +79,12 @@ public class DefaultNetExecutable File exe = new File( executablePath + File.separator + executable ); if ( exe.exists() ) { +logger.info(NPANDAY-070-003: Choose executable path for + executable + : + executablePath); return new File( executablePath ); } } } +logger.warn(NPANDAY-070-004: Did not find path for + executable + in + executablePaths); return null; } Modified: incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java?rev=1069505r1=1069504r2=1069505view=diff == --- incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java (original) +++ incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/impl/DefaultRepositoryNetExecutable.java Thu Feb 10 18:05:33 2011 @@ -74,10 +74,13 @@ public class DefaultRepositoryNetExecuta File exe = new File( executablePath ); if ( exe.exists() ) { +logger.info(NPANDAY-068-005: Choose executable path's parent as execution path: ++ new File( executablePath ).getParentFile().getAbsolutePath()); return new File( executablePath ).getParentFile(); }
svn commit: r1069506 - /incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java
Author: lcorneliussen Date: Thu Feb 10 18:08:51 2011 New Revision: 1069506 URL: http://svn.apache.org/viewvc?rev=1069506view=rev Log: Test did not delete created directories, hence 'clean' was required every time before 'test'. Modified: incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java Modified: incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java?rev=1069506r1=1069505r2=1069506view=diff == --- incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java (original) +++ incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java Thu Feb 10 18:08:51 2011 @@ -58,6 +58,9 @@ public class CommandExecutorTest File dir = new File( path ); assertTrue( dir.exists() ); + +if (dir.exists()) +dir.delete(); } @Test @@ -73,6 +76,9 @@ public class CommandExecutorTest File dir = new File( path ); assertTrue( dir.exists() ); + +if (dir.exists()) +dir.delete(); } } \ No newline at end of file