lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccurr...@apache.org
Subject [Lucene.Net] svn commit: r1198125 - in /incubator/lucene.net/trunk: build.cmd build/scripts/build.cmd build/scripts/build.targets
Date Sun, 06 Nov 2011 02:46:49 GMT
Author: ccurrens
Date: Sun Nov  6 02:46:49 2011
New Revision: 1198125

URL: http://svn.apache.org/viewvc?rev=1198125&view=rev
Log:
[LUCENENET-454] added checks in build.targets to make sure ArtifactPaths isn't empty, causing
the wrong files to be wiped (critical!)
fixed build.cmd files to set proper environment variables

Modified:
    incubator/lucene.net/trunk/build.cmd
    incubator/lucene.net/trunk/build/scripts/build.cmd
    incubator/lucene.net/trunk/build/scripts/build.targets

Modified: incubator/lucene.net/trunk/build.cmd
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build.cmd?rev=1198125&r1=1198124&r2=1198125&view=diff
==============================================================================
--- incubator/lucene.net/trunk/build.cmd (original)
+++ incubator/lucene.net/trunk/build.cmd Sun Nov  6 02:46:49 2011
@@ -17,8 +17,8 @@ GOTO LicenseEnd
  limitations under the License.
 :LicenseEnd
 
-SET TARGETS="simple"
-SET AREA="all"
+SET TARGETS=simple
+SET AREA=all
 SET CONFIGURATION=Release
 IF [%1] NEQ [] SET TARGETS=%1
 IF [%2] NEQ [] SET AREA=%2

Modified: incubator/lucene.net/trunk/build/scripts/build.cmd
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build/scripts/build.cmd?rev=1198125&r1=1198124&r2=1198125&view=diff
==============================================================================
--- incubator/lucene.net/trunk/build/scripts/build.cmd (original)
+++ incubator/lucene.net/trunk/build/scripts/build.cmd Sun Nov  6 02:46:49 2011
@@ -17,8 +17,8 @@ GOTO LicenseEnd
  limitations under the License.
 :LicenseEnd
 
-SET TARGETS ="all"
-SET AREA = "all"
+SET TARGETS=all
+SET AREA=all
 IF [%1] NEQ [] SET TARGETS=%1
 IF [%2] NEQ [] SET AREA=%2
 

Modified: incubator/lucene.net/trunk/build/scripts/build.targets
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/build/scripts/build.targets?rev=1198125&r1=1198124&r2=1198125&view=diff
==============================================================================
--- incubator/lucene.net/trunk/build/scripts/build.targets (original)
+++ incubator/lucene.net/trunk/build/scripts/build.targets Sun Nov  6 02:46:49 2011
@@ -68,11 +68,20 @@
 	  <Import Project="SpellChecker/project.targets" Condition="'$(Area)' == 'spellchecker'"
/>
 	
 
-	<ItemGroup>
+	<ItemGroup Condition="'$(ArtifactsFolder)' != ''">
 		<CleanFiles Include="$(ArtifactsFolder)\**\*.*" />
 		<CleanFiles Include="$(RootFolder)\bin\**\*"  Exclude="$(RootFolder)\**\.svn\*; $(RootFolder)\.svn\*"
/>
 	</ItemGroup>	
 	
+    <Target Name="diag">
+        <Message Text="TempFolder=$(TempFolder)" />
+        <Message Text="BuildFolder=$(BuildFolder)" />
+        <Message Text="ScriptsFolder=$(ScriptsFolder)" />
+        <Message Text="RootFolder=$(RootFolder)" />
+        <Message Text="Area=$(Area)" />
+        <Message Text="ArtifactsFolder=$(ArtifactsFolder)" />
+    </Target>
+    
 	<Target Name="paths">
 		<CallTarget Targets="@(PathsTarget)" />
 	</Target>
@@ -83,8 +92,9 @@
 	</Target>
 	
 	<Target Name="clean">
+        <Error Condition="'$(ArtifactsFolder)' == ''" Text="ArtifactsFolder is empty!
 'Area' may be empty or invalid." />
 		<Message Text="Files To Clean: @(CleanFiles)" />
-		<Delete Files="@(CleanFiles)" /> 
+		<Delete Files="@(CleanFiles)" />
 	</Target>
 	
   



Mime
View raw message