Jonathan Simms avatar Jonathan Simms committed 34b9189

phooar, trying to fix build

Comments (0)

Files changed (3)

   <artifactId>lucener</artifactId>
   <version>1.0-SNAPSHOT</version>
   <name>${project.artifactId}</name>
-  <description>My wonderfull scala app</description>
-  <inceptionYear>2010</inceptionYear>
-
 
   <properties>
     <maven.compiler.source>1.5</maven.compiler.source>
       <artifactId>lucene-analyzers-common</artifactId>
       <version>4.0.0-BETA</version>
     </dependency>
-    <!--<dependency>-->
-      <!--<groupId>org.apache.lucene</groupId>-->
-      <!--<artifactId>lucene-demo</artifactId>-->
-      <!--<version>4.0.0-BETA</version>-->
-    <!--</dependency>-->
     <dependency>
       <groupId>org.apache.lucene</groupId>
       <artifactId>lucene-queryparser</artifactId>
       <version>4.0.0-BETA</version>
     </dependency>
+    <dependency>
+      <groupId>com.frugalmechanic</groupId>
+      <artifactId>scala-optparse</artifactId>
+      <version>1.1</version>
+    </dependency>
+
     <!-- Test -->
+
     <!--<dependency>-->
       <!--<groupId>junit</groupId>-->
       <!--<artifactId>junit</artifactId>-->
     <!--</dependency>-->
 
   </dependencies>
-
-  <!--<build>-->
-    <!--<sourceDirectory>src/main/scala</sourceDirectory>-->
-    <!--<testSourceDirectory>src/test/scala</testSourceDirectory>-->
-    <!--<plugins>-->
-      <!--<plugin>-->
-        <!--<groupId>org.scala-tools</groupId>-->
-        <!--<artifactId>maven-scala-plugin</artifactId>-->
-        <!--<version>2.15.0</version>-->
-        <!--<executions>-->
-          <!--<execution>-->
-            <!--<goals>-->
-              <!--<goal>compile</goal>-->
-              <!--<goal>testCompile</goal>-->
-            <!--</goals>-->
-            <!--<configuration>-->
-              <!--<args>-->
-                <!--<arg>-make:transitive</arg>-->
-                <!--<arg>-dependencyfile</arg>-->
-                <!--<arg>${project.build.directory}/.scala_dependencies</arg>-->
-              <!--</args>-->
-            <!--</configuration>-->
-          <!--</execution>-->
-        <!--</executions>-->
-      <!--</plugin>-->
-      <!--<plugin>-->
-        <!--<groupId>org.apache.maven.plugins</groupId>-->
-        <!--<artifactId>maven-surefire-plugin</artifactId>-->
-        <!--<version>2.6</version>-->
-        <!--<configuration>-->
-          <!--<useFile>false</useFile>-->
-          <!--<disableXmlReport>true</disableXmlReport>-->
-          <!--&lt;!&ndash; If you have classpath issue like NoDefClassError,... &ndash;&gt;-->
-          <!--&lt;!&ndash; useManifestOnlyJar>false</useManifestOnlyJar &ndash;&gt;-->
-          <!--<includes>-->
-            <!--<include>**/*Test.*</include>-->
-            <!--<include>**/*Suite.*</include>-->
-          <!--</includes>-->
-        <!--</configuration>-->
-      <!--</plugin>-->
-    <!--</plugins>-->
-  <!--</build>-->
 </project>

src/net/freenose/lucener/Default.scala

 
 
 object Default {
-  val IndexDir = "/tmp/lucener-index"
-  val DocsPath = "/Users/slyphon/.weechat/logs"
+  final val IndexDir = "/tmp/lucener-index"
+  final val DocsPath = "/Users/slyphon/.weechat/logs"
 }

src/net/freenose/lucener/SearchFiles.scala

     """.stripMargin
 
   def main(args: Array[String]) {
-//    var index = Default.
+    var index = Default.IndexDir
+    var field = "contents"
+    var repeat = 0
+    var raw = false
+    var queryString = null
+    var hitsPerPage = 10
 
-    if ((args.length == 0) || args.exists(s => (s == "-h" || s == "-help"))) {
+    if ((args.length == 0) || args.exists((s: String) => (s == "-h" || s == "-help"))) {
       println(Usage)
       System.exit(1)
     }
+
+
   }
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.