Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 4af3858

Browse files
committed
setting build properties, updaing script reading methods
1 parent 5955ad8 commit 4af3858

3 files changed

Lines changed: 23 additions & 19 deletions

File tree

resources/build.properties

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# For windows the default path to your sketchbook would be
1818
# ${user.home}/My Documents/Processing (make adjustments below).
1919

20-
sketchbook.location=${user.home}/Documents/Processing
20+
sketchbook.location=${user.home}/Coding/Processing/sketchbook
2121

2222

2323

@@ -72,11 +72,11 @@ ant.description=ProcessingLibs Ant build file.
7272
# Project details.
7373
# Give your library a name. The name must not contain spaces or special characters.
7474

75-
project.name=YourLibrary
75+
project.name=eliza
7676

7777
# The name as the user will see it. This can contain spaces and special characters.
7878

79-
project.prettyName=Your Library
79+
project.prettyName=eliza
8080

8181

8282
# Use 'normal' or 'fast' as value for project.compile.
@@ -98,14 +98,14 @@ project.compile=normal
9898
# If you need more control, you can edit web/index.html and
9999
# web/library.properties directly.
100100

101-
author.name=Your Name
102-
author.url=http://yoururl.com
101+
author.name=Andres Colubri
102+
author.url=http://interfaze.info/
103103

104104

105105
# Set the web page for your library.
106106
# This is NOT a direct link to where to download it.
107107

108-
library.url=http://yourlibraryname.com
108+
library.url=http://interfaze.info/libraries/eliza/
109109

110110

111111
# Set the category of your library. This must be one (or many) of the following:
@@ -116,7 +116,7 @@ library.url=http://yourlibraryname.com
116116
# If a value other than those listed is used, your library will listed as
117117
# "Other".
118118

119-
library.category=Other
119+
library.category=Language
120120

121121

122122
# A short sentence (or fragment) to summarize the library's function. This will
@@ -125,23 +125,23 @@ library.category=Other
125125
# like mentioning that it's a library. This should start with a capitalized
126126
# letter, and end with a period.
127127

128-
library.sentence=A collection of utilities for solving this and that problem.
128+
library.sentence=The classic Eliza psychologist program.
129129

130130

131131
# Additional information suitable for the Processing website. The value of
132132
# 'sentence' always will be prepended, so you should start by writing the
133133
# second sentence here. If your library only works on certain operating systems,
134134
# mention it here.
135135

136-
library.paragraph=
136+
library.paragraph=Based on the <a href="http://chayden.net/eliza/Eliza.html">Java implementation by Charles Hayden</a>, faithful to the original 1966 version.
137137

138138

139139
# Set the source code repository for your project.
140140
# Recommendations for storing your source code online are Google Code or GitHub.
141141

142-
source.host=Google Code
143-
source.url=http://code.google.com/p/yourProject
144-
source.repository=http://code.google.com/p/yourProject/source/browse/
142+
source.host=GitHub
143+
source.url=https://github.com/codeanticode/eliza
144+
source.repository=https://github.com/codeanticode/eliza
145145

146146

147147
# The current version of your library.
@@ -158,11 +158,11 @@ library.prettyVersion=1.0.0
158158

159159

160160
library.copyright=(c) 2013
161-
library.dependencies=?
162-
library.keywords=?
161+
library.dependencies=
162+
library.keywords=eliza, chatbot, AI, natural language
163163

164-
tested.platform=osx,windows
165-
tested.processingVersion=1.5
164+
tested.platform=osx, windows, linux
165+
tested.processingVersion=2.0.2
166166

167167

168168
# Include javadoc references into your project's javadocs.

resources/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<project name="ProcessingLibs" default="clean" basedir="../">
1+
<project name="eliza" default="clean" basedir="../">
22

33

44
<!--

src/codeanticode/eliza/Eliza.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
package codeanticode.eliza;
99

10+
import java.net.URL;
11+
1012
import processing.core.*;
1113

1214
/**
@@ -168,11 +170,13 @@ public String processInput(String s) {
168170
public boolean readDefaultScript() {
169171
clearScript();
170172

173+
URL url = this.getClass().getResource("eliza.script");
174+
System.out.println(url);
175+
171176
/*
172177
// Returns the URL of the resource file inside the location in the jar
173178
// where the class file for Eliza is stored. More info about this here:
174-
// http://www.javaworld.com/javaworld/javaqa/2002-11/02-qa-1122-resources.html
175-
URL url = this.getClass().getResource("eliza.script");
179+
// http://www.javaworld.com/javaworld/javaqa/2002-11/02-qa-1122-resources.html
176180
if (url != null)
177181
{
178182
String[] lines = parent.loadStrings(url.toString());

0 commit comments

Comments
 (0)