Skip to content

Commit bbabce2

Browse files
committed
Added some templates for the properties files with detailed comments. #14
1 parent 14dba71 commit bbabce2

4 files changed

Lines changed: 58 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ You can also find an example script library, `DemoScriptLibrary`
3030

3131
### Agent Configuration
3232

33-
Configure agents in `agentProperties/agentbuild`.
33+
Configure agents in `agentProperties/agentbuild`. See the commented template here: `agentProperties/templates/agent.properties`
3434

35-
Configure script libraries in `agentProperties/scriptbuild`
35+
Configure script libraries in `agentProperties/scriptbuild`. See the commented template here: `agentProperties/templates/scriptlibrary.properties`
3636

3737
The name of the file (excluding the `.properties extension`) should match the name of the agent. This name will be used in [Running Tasks](#running-tasks).
3838

File renamed without changes.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# target location overwritten by properties in build.gradle
2+
$$nsfServer=
3+
$$nsfFile=
4+
5+
## Primary Configuration
6+
# The name of the agent. An alias can be specifed with: FullName|alias
7+
agent_name=MyAgent
8+
# The main class that should be run for this agent. This must include the package. The maximum length is 65 characters - additional characters will be cut off.
9+
javaproject_class=path/to/MyAgent.class
10+
# The JAR to use for this agent. All agents will use the combined JAR
11+
$$jarSourceFile=./build/libs/MyProject.jar
12+
# Comma-separated list of Script Libraries required for this agent
13+
$$scriptLibrary=
14+
15+
## Additional options
16+
# Whether the agent should run as the web users with permissions. true or false
17+
agent_runaswebuser=false
18+
# If true, enables you to access the agent without having to wait for it to complete. If you set this attribute to true and the agent references any front-end classes, a run-time error is generated
19+
agent_clientbackgroundthread=false
20+
# If true, permits remote debugging of the LotusScript in an agent script and permits you to monitor the execution of agents written in Java
21+
agent_allowremotedebugging=false
22+
# If true, highlights the text in the retrieved documents that matches the search query. Default is false.
23+
agent_storehighlights=false
24+
# The access level the agent needs: (restricted | unrestricted | fulladminunrestricted)
25+
agent_restrictions=restricted
26+
# Space separated list of hide restrictions. Allowed Values: (web | notes | v3)
27+
agent_hide=v3 notes
28+
# Do not change
29+
agent_publicaccess=false
30+
# The method to use for triggering the agent. Options: (actionsmenu | agentlist | beforenewmail | afternewmail | docupdate | docpaste | scheduled | serverstart )
31+
trigger_type=actionsmenu
32+
# The runtime behavior of the agent: (modified | unreadinview | allinview | selected | runonce | all)
33+
documentset_type=runonce
34+
# Name of a built-in event or a user-defined LotusScript function.
35+
code_event=action
36+
# Do not change
37+
javaproject_codepath=.
38+
# true or false. Determines whether this agent is compiled with debugging information. True is recommended to see line numbers in stack traces
39+
javaproject_compiledebug=true
40+
# Do not change this
41+
javaproject_imported=true
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# target location overwritten by properties in build.gradle
2+
$$nsfServer=
3+
$$nsfFile=
4+
5+
# The name of the script library
6+
scriptlibrary_name=REPLACEME
7+
# Comma-separated list of script libraries required by this script library
8+
$$scriptLibrary=
9+
# The JAR with the main source code for this script library
10+
$$scriptlibrary_objectjarFile=./lib/REPLACEME.jar
11+
# Additional jars to include in the agent. Comma separated
12+
$$jarSourceFile=
13+
javaproject_codepath=.
14+
# Do not change
15+
$$scriptlibrary_sourcejarFile=./ScriptLibraryImportTemplate/%%source%%.jar

0 commit comments

Comments
 (0)