lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhern...@apache.org
Subject [Lucene.Net] svn commit: r1174624 - in /incubator/lucene.net/trunk: build/scripts/ build/scripts/Core/ lib/Nuget/ src/core/
Date Fri, 23 Sep 2011 09:51:38 GMT
Author: mherndon
Date: Fri Sep 23 09:51:37 2011
New Revision: 1174624

URL: http://svn.apache.org/viewvc?rev=1174624&view=rev
Log:
adding nuget.exe to project for build tools/packaging. this is the first pass at creating
the nupkg for lucene core.

Added:
    incubator/lucene.net/trunk/build/scripts/Core/Lucene.Net.Core.nuspec
    incubator/lucene.net/trunk/build/scripts/version.targets
    incubator/lucene.net/trunk/lib/Nuget/
    incubator/lucene.net/trunk/lib/Nuget/Lucene.Net.Core.2.9.4.1.nupkg
    incubator/lucene.net/trunk/lib/Nuget/NuGet.exe
    incubator/lucene.net/trunk/src/core/lucene.net.project.nuspec
Modified:
    incubator/lucene.net/trunk/build/scripts/Core/project.targets
    incubator/lucene.net/trunk/build/scripts/build.targets
    incubator/lucene.net/trunk/build/scripts/dot-net-tools.targets

Added: incubator/lucene.net/trunk/build/scripts/Core/Lucene.Net.Core.nuspec
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build/scripts/Core/Lucene.Net.Core.nuspec?rev=1174624&view=auto
==============================================================================
--- incubator/lucene.net/trunk/build/scripts/Core/Lucene.Net.Core.nuspec (added)
+++ incubator/lucene.net/trunk/build/scripts/Core/Lucene.Net.Core.nuspec Fri Sep 23 09:51:37
2011
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+  <metadata>
+    <id>Lucene.Net.Core</id>
+    <version>$version$</version>
+    <title>Lucene.Net Core</title>
+    <authors>Lucene.Net Community</authors>
+    <owners>The Apache Software Foundation</owners>
+    <iconUrl>http://incubator.apache.org/lucene.net/media/lucene-net-ico-128x128.png</iconUrl>
+    <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
+    <projectUrl>http://incubator.apache.org/lucene.net/</projectUrl>
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <description>Lucene.Net is a port of the Lucene search engine library, written
in C# and targeted at .NET runtime users.
+
+This package contains only the core Lucene.Net assembly.</description>
+    <summary>Lucene.Net is a port of the Lucene search engine library, written in C#
and targeted at .NET runtime users.</summary>
+	<tags>lucene.net core search information retrieval lucene apache</tags>
+	
+    <references>
+	  	<reference file="Lucene.Net.dll" />
+    </references>
+     <dependencies>
+        <dependency id="SharpZipLib" version="0.86.0" />
+     </dependencies>  
+  </metadata>
+  <files>
+        <file src="..\..\bin\core\Release\Lucene.Net.dll" target="lib\net40\Lucene.Net.dll"
/>
+        <file src="..\..\bin\core\Release\Lucene.Net.XML" target="lib\net40\Lucene.Net.XML"
/>
+  </files>
+ 
+</package>
\ No newline at end of file

Modified: incubator/lucene.net/trunk/build/scripts/Core/project.targets
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build/scripts/Core/project.targets?rev=1174624&r1=1174623&r2=1174624&view=diff
==============================================================================
--- incubator/lucene.net/trunk/build/scripts/Core/project.targets (original)
+++ incubator/lucene.net/trunk/build/scripts/Core/project.targets Fri Sep 23 09:51:37 2011
@@ -25,16 +25,21 @@
 	-->
 	<PropertyGroup>
 		<CoreFolder>$(BinFolder)\core\$(Configuration)</CoreFolder>
+		<CorePackage>Lucene.Net.Core.nuspec</CorePackage>
 	</PropertyGroup>
 	<PropertyGroup  Condition="'$(Area)' == 'core'">
 		<LocalBinFolder>$(BinFolder)\core\$(Configuration)</LocalBinFolder>
 		<ArtifactsFolder>$(BuildFolder)\artifacts\core</ArtifactsFolder>
 	</PropertyGroup>
-		
+	<Target Name="package-core">
+		<Exec Command="$(PackageManager) $(ScriptsFolder)\Core\$(CorePackage)  $(PackageManagerOptions)
$(ArtifactsFolder)" />
+	</Target>
 	<ItemGroup>
 		<!-- Binaries To Copy in case we which to store all build items -->
 		<BuildItems Include="$(CoreFolder)\*.*" /> 
 		
+		<!-- Add To The List of Packages to Build -->
+		<PackageTargets Include="package-core" />
 		
 		<!-- Files To Build -->
 		<ProjectFiles Include="$(SourceFolder)\Core\*.csproj" />

Modified: incubator/lucene.net/trunk/build/scripts/build.targets
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build/scripts/build.targets?rev=1174624&r1=1174623&r2=1174624&view=diff
==============================================================================
--- incubator/lucene.net/trunk/build/scripts/build.targets (original)
+++ incubator/lucene.net/trunk/build/scripts/build.targets Fri Sep 23 09:51:37 2011
@@ -19,7 +19,7 @@
 -->
 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
 	
-	
+	<Import Project="version.targets"  />
   	<PropertyGroup>
 		<Configuration Condition="'$(Configuration)' == 'debug'">Debug</Configuration>
 		<Configuration Condition="'$(Configuration)' == '' Or '$(Configuration)' == 'release'">Release</Configuration>
@@ -28,6 +28,7 @@
 		<!-- This path is a bit redundant -->
 		<TempFolder>$(TEMP)</TempFolder>
 		<BuildFolder>$(MSBuildProjectDirectory)\..</BuildFolder>
+		<ScriptsFolder>$(MSBuildProjectDirectory)</ScriptsFolder>
 		<RootFolder>$(MSBuildProjectDirectory)\..\..\</RootFolder>
 		<Executable></Executable>
 	 </PropertyGroup>
@@ -39,6 +40,10 @@
 		<LibFolder>$(RootFolder)lib</LibFolder>
 		<PackagesFolder>$(RootFolder)lib</PackagesFolder>
  	</PropertyGroup>
+ 	<PropertyGroup>
+ 		<PackageManager>$(LibFolder)\Nuget\NuGet.exe pack </PackageManager>
+ 		<PackageManagerOptions>-Version $(Version) -OutputDirectory</PackageManagerOptions>
+ 	</PropertyGroup>
  	
 	<!-- To Execute commands on mono like running nunit, it requires running through the
program mono.exe -->
 	<PropertyGroup Condition="'$(NETFRAMEWORK)' == 'mono'">

Modified: incubator/lucene.net/trunk/build/scripts/dot-net-tools.targets
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build/scripts/dot-net-tools.targets?rev=1174624&r1=1174623&r2=1174624&view=diff
==============================================================================
--- incubator/lucene.net/trunk/build/scripts/dot-net-tools.targets (original)
+++ incubator/lucene.net/trunk/build/scripts/dot-net-tools.targets Fri Sep 23 09:51:37 2011
@@ -32,6 +32,7 @@
     	<!-- 
     	<ProgramFiles32 Condition=" '' == '$(ProgramFiles32)'">$(ProgramFiles%28x86%29)</ProgramFiles32>
     	<ProgramFiles32 Condition=" '' == '$(ProgramFiles32)' ">$(ProgramFiles)</ProgramFiles32>-->
+
 	</PropertyGroup>
 	
   	<ItemGroup>
@@ -50,6 +51,7 @@
   		<CleanFiles Include="$(ArtifactsFolder)\xml-test-reports\*.*" />
   		<CleanFiles Include="$(ArtifactsFolder)\docs\*.*" />
   		<CoverageFiles Include="$(PackagesFolder)\PortableLibrary\*.*" />
+  		<CleanPackages Include="$(ArtifactsFolder)\*.nupkg" />
   		<ReleaseFiles Include="$(ArtifactsFolder)\docs\Lucene.Net.chm" Condition="Exists('$(ArtifactsFolder)\docs\Lucene.Net.chm')"
/>
   	</ItemGroup>
   	
@@ -162,4 +164,9 @@
 			Text="FxCop is not installed under its expected location: %(FxCopFolder.FullPath)" />
 		
 	</Target>
+	
+	<Target Name="package" DependsOnTargets="build">
+		<Delete Files="@(CleanPackages)" />
+		<CallTarget Targets="@(PackageTargets)" />
+	</Target>
 </Project>
\ No newline at end of file

Added: incubator/lucene.net/trunk/build/scripts/version.targets
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build/scripts/version.targets?rev=1174624&view=auto
==============================================================================
--- incubator/lucene.net/trunk/build/scripts/version.targets (added)
+++ incubator/lucene.net/trunk/build/scripts/version.targets Fri Sep 23 09:51:37 2011
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<!--
+ 
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+  
+ http://www.apache.org/licenses/LICENSE-2.0
+  
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ 
+-->
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+	<!-- This file can be overwritten -->
+	<PropertyGroup>
+		<Version>2.9.4.1</Version>
+	</PropertyGroup>
+</Project>
\ No newline at end of file

Added: incubator/lucene.net/trunk/lib/Nuget/Lucene.Net.Core.2.9.4.1.nupkg
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/lib/Nuget/Lucene.Net.Core.2.9.4.1.nupkg?rev=1174624&view=auto
==============================================================================
Files incubator/lucene.net/trunk/lib/Nuget/Lucene.Net.Core.2.9.4.1.nupkg (added) and incubator/lucene.net/trunk/lib/Nuget/Lucene.Net.Core.2.9.4.1.nupkg
Fri Sep 23 09:51:37 2011 differ

Added: incubator/lucene.net/trunk/lib/Nuget/NuGet.exe
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/lib/Nuget/NuGet.exe?rev=1174624&view=auto
==============================================================================
Files incubator/lucene.net/trunk/lib/Nuget/NuGet.exe (added) and incubator/lucene.net/trunk/lib/Nuget/NuGet.exe
Fri Sep 23 09:51:37 2011 differ

Added: incubator/lucene.net/trunk/src/core/lucene.net.project.nuspec
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/lucene.net.project.nuspec?rev=1174624&view=auto
==============================================================================
--- incubator/lucene.net/trunk/src/core/lucene.net.project.nuspec (added)
+++ incubator/lucene.net/trunk/src/core/lucene.net.project.nuspec Fri Sep 23 09:51:37 2011
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<package >
+  <metadata>
+    <id>Lucene.Net.Core</id>
+    <version>$version$</version>
+    <authors>$author$</authors>
+    <owners>The Apache Software Foundation</owners>
+    <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
+    <projectUrl>http://incubator.apache.org/lucene.net/</projectUrl>
+    <iconUrl>..\..\branding\logo\lucene-net-icon-128x128.png</iconUrl>
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <description>
+    	Lucene.Net Core: This contains only the core Lucene.Net assembly.
+    	Lucene.Net is a port of the Lucene search engine library, written in C# and targeted
at .NET runtime users.</description>
+    <copyright>Copyright 2011</copyright>
+    <tags>Tag1 Tag2</tags>
+    <dependencies>
+      
+    </dependencies>
+  </metadata>
+</package>
\ No newline at end of file



Mime
View raw message