diff options
author | xue <> | 2006-06-19 02:34:25 +0000 |
---|---|---|
committer | xue <> | 2006-06-19 02:34:25 +0000 |
commit | bf41d24477d0d13f2bdb1cc87f645ef9f1f4de7b (patch) | |
tree | c37ef0365d620724cf3301b3c8dc9005901d965a /buildscripts/phing/tasks/QuickstartIndexTask.php | |
parent | b59ab2490b1bb82dc1d0b58d89584182b405d0a0 (diff) |
Added phing
Diffstat (limited to 'buildscripts/phing/tasks/QuickstartIndexTask.php')
-rw-r--r-- | buildscripts/phing/tasks/QuickstartIndexTask.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/buildscripts/phing/tasks/QuickstartIndexTask.php b/buildscripts/phing/tasks/QuickstartIndexTask.php new file mode 100644 index 00000000..f3107fd3 --- /dev/null +++ b/buildscripts/phing/tasks/QuickstartIndexTask.php @@ -0,0 +1,32 @@ +<?php
+
+require_once 'phing/Task.php';
+
+/**
+ * Task to index quickstart
+ */
+class QuickstartIndexTask extends Task
+{
+ private $todir;
+
+ public function setTodir($value)
+ {
+ $this->todir=$value;
+ }
+
+ public function main()
+ {
+ $srcdir=realpath(dirname(__FILE__).'/../../../');
+ $zend_path = $srcdir.'/demos/quickstart/protected/index';
+ set_include_path(get_include_path().PATH_SEPARATOR.realpath($zend_path));
+ require_once ('Zend/Search/Lucene.php');
+
+ require_once($srcdir.'/buildscripts/index/quickstart_index.php');
+ $quickstart_source = $srcdir.'/buildscripts/texbuilder/pages.php';
+ $quickstart_base = $srcdir.'/demos/quickstart/protected/pages/';
+ $quickstart = new quickstart_index($this->todir, realpath($quickstart_base), realpath($quickstart_source));
+ $quickstart->create_index();
+ }
+}
+
+?>
\ No newline at end of file |