Skip to content

Commit

Permalink
preparing nuget stuff
Browse files Browse the repository at this point in the history
git-svn-id: https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk@1675 d7b3437e-3345-0410-94a8-cbd290e69f67
  • Loading branch information
darioquintana committed Apr 16, 2011
1 parent a5b0620 commit b26f177
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/NHibernate.Validator/NHibernate.Validator.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>NHibernate.Validator</id>
<version>1.3.1.4000</version>
<authors>Author here</authors>
<owners>Owner here</owners>
<licenseUrl>http://www.gnu.org/licenses/lgpl.html</licenseUrl>
<projectUrl>http://nhforge.org</projectUrl>
<iconUrl>http://darioquintana.com.ar/files/NHV-logo-white-background.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Validation framework for .Net</description>
<tags>Tag1 Tag2</tags>
<dependencies>
<dependency id="NHibernate" version="3.1.0.4000" />
</dependencies>
</metadata>
<files>
<file src="Build\NuDeploy\*" target="lib\Net35" />
</files>
</package>
1 change: 1 addition & 0 deletions src/NHibernate.Validator/build-common/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
<call target="set-${project.config}-project-configuration" />

<property name="build.root.dir" value="${root.dir}/build/${build.name}" />
<property name="build.nuget.dir" value="${root.dir}/build/NuGetDeploy" />
<property name="build.dir" value="${build.root.dir}" />
<property name="bin.dir" value="${build.dir}/bin/${nant.settings.currentframework}" dynamic="true" />
<property name="testresults.dir" value="${bin.dir}/test-results" />
Expand Down
21 changes: 21 additions & 0 deletions src/NHibernate.Validator/default.build
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,27 @@
</fileset>
</copy-->
</target>

<target name="nugetdeploy" depends="init build">

<copy todir="${build.nuget.dir}">
<fileset basedir="${bin.dir}">
<include name="*" />
</fileset>
</copy>
<delete>
<fileset basedir="${build.nuget.dir}">
<include name="nunit*" />
<include name="SharpTestsEx*" />
<include name="log4net*" />
<include name="*test*" />
<include name="Castle.Core*" />
<include name="Antlr3.Runtime*" />
<include name="LinFu.DynamicProxy*" />
<include name="NHibernate.ByteCode*" />
</fileset>
</delete>
</target>

<target name="binaries-zip" depends="init binaries copy-release-notes">
<zip zipfile="${build.dir}/bin/NHibernate.Validator-${project.version}-bin.zip">
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.Validator/package.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nant -t:net-3.5 -D:project.config=release cleanall package
nant -t:net-3.5 -D:project.config=release cleanall package nugetdeploy
pause

0 comments on commit b26f177

Please sign in to comment.