Changeset 13210 for trunk/sources/HeuristicLab.Problems.GeneticProgramming
- Timestamp:
- 11/17/15 13:48:30 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3
- Files:
-
- 18 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/HeuristicLab.Problems.GeneticProgramming-3.3.csproj
r12938 r13210 104 104 </Reference> 105 105 <Reference Include="System.Drawing" /> 106 <Reference Include="System.IO.Compression" /> 107 <Reference Include="System.IO.Compression.FileSystem" /> 106 108 </ItemGroup> 107 109 <ItemGroup> … … 117 119 <Compile Include="Plugin.cs" /> 118 120 <Compile Include="Properties\AssemblyInfo.cs" /> 121 <Compile Include="robocode\EnemyCollection.cs" /> 122 <Compile Include="robocode\Grammar.cs" /> 123 <Compile Include="robocode\Interpreter.cs" /> 124 <Compile Include="robocode\Problem.cs" /> 125 <Compile Include="robocode\Solution.cs" /> 126 <Compile Include="robocode\Symbols\BooleanTreeNode.cs" /> 127 <Compile Include="robocode\Symbols\BooleanValue.cs" /> 128 <Compile Include="robocode\Symbols\CodeSymbol.cs" /> 129 <Compile Include="robocode\Symbols\Number.cs" /> 130 <Compile Include="robocode\Symbols\NumberTreeNode.cs" /> 131 <Compile Include="robocode\Symbols\ShotPower.cs" /> 132 <Compile Include="robocode\Symbols\ShotPowerTreeNode.cs" /> 119 133 </ItemGroup> 120 134 <ItemGroup> … … 122 136 <None Include="Plugin.cs.frame" /> 123 137 <None Include="Properties\AssemblyInfo.cs.frame" /> 138 <None Include="robocode\BattleObserver.class"> 139 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 140 </None> 141 <None Include="robocode\BattleRunner.class"> 142 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 143 </None> 144 <None Include="robocode\robocode.zip"> 145 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 146 </None> 124 147 </ItemGroup> 125 148 <ItemGroup> … … 211 234 <Install>true</Install> 212 235 </BootstrapperPackage> 236 </ItemGroup> 237 <ItemGroup> 238 <Content Include="robocode\BattleRunner.java" /> 213 239 </ItemGroup> 214 240 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/Plugin.cs.frame
r12936 r13210 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Text; 23 using System.IO; 24 using System.IO.Compression; 25 using System.Linq; 25 26 using HeuristicLab.PluginInfrastructure; 26 27 … … 28 29 [Plugin("HeuristicLab.Problems.GeneticProgramming","Provides implementations for genetic programming problems such as the artificial ant problem.", "3.3.0.$WCREV$")] 29 30 [PluginFile("HeuristicLab.Problems.GeneticProgramming-3.3.dll", PluginFileType.Assembly)] 31 [PluginFile("Robocode/robocode.zip", PluginFileType.Data)] 32 [PluginFile("Robocode/BattleRunner.class", PluginFileType.Data)] 33 [PluginFile("Robocode/BattleObserver.class", PluginFileType.Data)] 30 34 [PluginDependency("HeuristicLab.Collections", "3.3")] 31 35 [PluginDependency("HeuristicLab.Common", "3.3")] … … 41 45 [PluginDependency("HeuristicLab.Random", "3.3")] 42 46 public class HeuristicLabProblemsGeneticProgrammingPlugin : PluginBase { 47 public override void OnLoad() { 48 base.OnLoad(); 49 if (!Directory.EnumerateDirectories(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "libs"), SearchOption.TopDirectoryOnly).Any()) { 50 ZipFile.ExtractToDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "robocode.zip")), AppDomain.CurrentDomain.BaseDirectory); 51 } 52 } 43 53 } 44 54 }
Note: See TracChangeset
for help on using the changeset viewer.