mathlib-commitlog Mailing List for JMathLib - Octave, Matlab clone in java (Page 5)
Status: Beta
Brought to you by:
st_mueller
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(4) |
Aug
(150) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(233) |
Feb
(86) |
Mar
(32) |
Apr
(26) |
May
(73) |
Jun
(45) |
Jul
(23) |
Aug
(23) |
Sep
(5) |
Oct
(80) |
Nov
(11) |
Dec
(11) |
| 2008 |
Jan
|
Feb
|
Mar
(13) |
Apr
(3) |
May
(7) |
Jun
(30) |
Jul
(12) |
Aug
(12) |
Sep
|
Oct
|
Nov
(78) |
Dec
(78) |
| 2009 |
Jan
(214) |
Feb
(79) |
Mar
(20) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <st_...@us...> - 2009-01-31 17:39:20
|
Revision: 810
http://mathlib.svn.sourceforge.net/mathlib/?rev=810&view=rev
Author: st_mueller
Date: 2009-01-31 17:39:16 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
moved JMathLib.properties
Modified Paths:
--------------
JMathLib/trunk/installer/JMathLibInstall.nsi
Modified: JMathLib/trunk/installer/JMathLibInstall.nsi
===================================================================
--- JMathLib/trunk/installer/JMathLibInstall.nsi 2009-01-31 14:43:36 UTC (rev 809)
+++ JMathLib/trunk/installer/JMathLibInstall.nsi 2009-01-31 17:39:16 UTC (rev 810)
@@ -144,7 +144,7 @@
SetOutPath "$INSTDIR"
File "..\upload\jmathlib\JMathLib.exe"
File "..\upload\jmathlib\JMathLibSwing.exe"
- File "..\upload\jmathlib\JMathLib.properties"
+ ;File "..\upload\jmathlib\JMathLib.properties"
;File "..\upload\jmathlib\JMathLib.local.properties"
File "..\upload\jmathlib\ChangeLog.txt"
File "..\upload\jmathlib\JMathLib.html"
@@ -217,7 +217,7 @@
RMDir /r "$INSTDIR\src"
RMDir /r "$INSTDIR\handbook"
Delete "$INSTDIR\license.txt"
- Delete "$INSTDIR\JMathLib.properties"
+ ;Delete "$INSTDIR\JMathLib.properties"
;Delete "$INSTDIR\JMathLib.local.properties"
Delete "$INSTDIR\JMathLib.log"
Delete "$INSTDIR\license.txt"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-31 14:43:44
|
Revision: 809
http://mathlib.svn.sourceforge.net/mathlib/?rev=809&view=rev
Author: st_mueller
Date: 2009-01-31 14:43:36 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
Modified Paths:
--------------
JMathLib/trunk/readme_creation_of_distribution.txt
Modified: JMathLib/trunk/readme_creation_of_distribution.txt
===================================================================
--- JMathLib/trunk/readme_creation_of_distribution.txt 2009-01-31 14:42:09 UTC (rev 808)
+++ JMathLib/trunk/readme_creation_of_distribution.txt 2009-01-31 14:43:36 UTC (rev 809)
@@ -15,14 +15,10 @@
- run JMathLib and call createFunctionsList()
(this is done by the ant process)
-- change file: JMathLib.properties
+- change file: src/JMathLib.properties
and change to the release date
and change to the new versions
-- change file: JMathLib.local.properties
- and change to the release date to be the same as in JMathLib.properties
- and change to the new version to be the same as in JMathLib.properties
-
- change file: ChangeLog.txt
- run the ant tasks: all (this creates all doc-files and the installer)
@@ -33,6 +29,7 @@
upload JMathLib_x.x.x.zip to sourceforge.net
- change the website in mathlib.sourceforge.net/CheckForUpdates/
+- change the website in www.jmathlib.de/CheckForUpdates/
and change to new version
and change to new date
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-31 14:42:19
|
Revision: 808
http://mathlib.svn.sourceforge.net/mathlib/?rev=808&view=rev
Author: st_mueller
Date: 2009-01-31 14:42:09 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
corrections of "property loading"
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-31 14:41:39 UTC (rev 807)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-31 14:42:09 UTC (rev 808)
@@ -10,6 +10,7 @@
package jmathlib.core.interpreter;
import java.io.*;
+import java.net.URL;
import java.util.Locale;
import java.util.Properties;
import java.applet.Applet;
@@ -36,6 +37,9 @@
/**Object to control function usage*/
private jmathlib.core.functions.FunctionManager functionManager;
+ /** global pointer to applet */
+ private Applet applet = null;
+
/**A pointer to the interpreter itself*/
private Interpreter interpreter;
@@ -46,7 +50,7 @@
private jmathlib.plugins.PluginsManager pluginsManager;
/**stores the number format for displaying the number*/
- public NumberFormat numFormat = new DecimalFormat("0.0000", new DecimalFormatSymbols(Locale.ENGLISH));
+ private NumberFormat numFormat = new DecimalFormat("0.0000", new DecimalFormatSymbols(Locale.ENGLISH));
/** global properties */
private static Properties props = new Properties();
@@ -55,11 +59,14 @@
* @param _interpreter = the Interpreter object
* @param _runningStandalone = true if this was run from an application
*/
- public GlobalValues(Interpreter _interpreter, boolean _runningStandalone, Applet applet)
+ public GlobalValues(Interpreter _interpreter, boolean _runningStandalone, Applet _applet)
{
// the list of contexts
contextList = new ContextList();
+ // pointer to applet
+ applet = _applet;
+
// the function manager for loading m-files class-files
functionManager = new jmathlib.core.functions.FunctionManager(_runningStandalone, applet);
@@ -101,25 +108,28 @@
return contextList.getVariable(name);
}
- /** create a variable in the local or global workspace
- * @param
- * @return
+ /**
+ * Create a variable in the local or global workspace
+ * @param creates a new variable
+ * @return returns the handle to that variable
*/
public Variable createVariable(String name)
{
return contextList.createVariable(name);
}
- /** create a variable in the local or global workspace
- * @param
- * @param
+ /**
+ * Create a variable in the local or global workspace
+ * @param name of the variable
+ * @param data of the variable
*/
public void setVariable(String name, OperandToken value)
{
contextList.setVariable(name, value);
}
- /**Change the current context to point to the new Variable List
+ /**
+ * Change the current context to point to the new Variable List
* @param _Variables = the new list of Variables to use
*/
public void createContext(VariableList _variables)
@@ -127,22 +137,25 @@
contextList.createContext(_variables);
}
- /**Return to the previous variable list
+ /**
+ * Return to the previous variable list
*/
public void popContext()
{
contextList.popContext();
}
- /**Allow access to the context list
- * @return
+ /**
+ * Allow access to the context list
+ * @return the context list
*/
public ContextList getContextList()
{
return contextList;
}
- /**returns the interpreter object
+ /**
+ * Returns the interpreter object
* @return pointer to Interpreter
*/
public Interpreter getInterpreter()
@@ -151,6 +164,7 @@
}
/**
+ * Returns a handle to the function manager
* @return the function manager
*/
public jmathlib.core.functions.FunctionManager getFunctionManager()
@@ -159,6 +173,7 @@
}
/**
+ * Returns a handle to the graphics manager
* @return handle to graphics manager
*/
public jmathlib.core.graphics.GraphicsManager getGraphicsManager()
@@ -167,6 +182,7 @@
}
/**
+ * Returns a handle to the plugin manager
* @return handle to plugins manager
*/
public jmathlib.plugins.PluginsManager getPluginsManager()
@@ -175,6 +191,7 @@
}
/**
+ * Returns the working directory
* @return actual working directory
*/
public File getWorkingDirectory()
@@ -183,6 +200,7 @@
}
/**
+ * Sets the working directory
* @param set working directory
*/
public void setWorkingDirectory(File _workingDir)
@@ -209,22 +227,42 @@
}
/**
- *
- *
+ * load JMathLib properties from a file or in applet version
+ * from the web server.
*/
public void loadPropertiesFromFile()
{
-
// load global properties from disc
try
{
- props.load(new FileInputStream(new File("JMathLib.properties")));
+ // check if JMathLib is running is applet or application
+ if (applet != null)
+ {
+ // running as applet
+ //System.out.println("properties applet " + getWorkingDirectory());
+ URL url = new URL(applet.getCodeBase(), "JMathLib.properties");
+ props.load( url.openStream() );
+ }
+ else
+ {
+ // running as application
+ File f = new File("JMathLib.properties");
+
+ // check if property file exist in "working directory" or
+ // if it is not available yet, then take the original one
+ // from the bin directory
+ if (!f.exists())
+ f = new File("bin/JMathLib.properties");
+
+ // load properties
+ //System.out.println("properties file "+f.getCanonicalPath().toString());
+ props.load(new FileInputStream(f));
+ }
}
catch (Exception e)
{
System.out.println("Properties global error");
}
- //System.out.println("Properties loaded");
// display properties
//Enumeration propnames = props.propertyNames();
@@ -233,32 +271,37 @@
// String propname = (String)globalPropnames.nextElement();
// System.out.println("Property: "+propname+" = "+globalProps.getProperty(propname));
//}
-
-
}
/**
- *
+ * store properties back to a file on disc. In applet version
+ * do not store, since there is no disc
*/
public void storePropertiesToFile()
{
+ // do not try to store properties is an applet
+ if (applet!=null)
+ return;
// store properties back to file
try
{
- props.store(new FileOutputStream(new File("JMathLib.properties")),
+ File f = new File("JMathLib.properties");
+ //System.out.println("properties file "+f.getCanonicalPath().toString());
+
+ props.store(new FileOutputStream(f.getCanonicalPath()),
"JMathLib property file" );
}
catch (Exception e)
{
- System.out.println("Property: Error");
+ System.out.println("GlobalVAues: properties store error");
}
}
/**
- *
+ * Returns one of JMathLib's properties
* @param property
- * @return
+ * @return string value of the requested property
*/
public String getProperty(String property)
{
@@ -266,9 +309,9 @@
}
/**
- *
- * @param property
- * @param value
+ * Sets a property of JMathLib
+ * @param name of property
+ * @param value of property
*/
public void setProperty(String property, String value)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-31 14:41:48
|
Revision: 807
http://mathlib.svn.sourceforge.net/mathlib/?rev=807&view=rev
Author: st_mueller
Date: 2009-01-31 14:41:39 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getenv.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getenv.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getenv.java 2009-01-31 14:40:41 UTC (rev 806)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getenv.java 2009-01-31 14:41:39 UTC (rev 807)
@@ -17,6 +17,20 @@
{
OperandToken result = null;
+ if(getNArgIn(operands) ==0)
+ {
+ String s = System.getProperties().toString();
+ return new CharToken(s);
+ // display properties
+ //Enumeration propnames = props.propertyNames();
+ //while (globalPropnames.hasMoreElements())
+ //{
+ // String propname = (String)globalPropnames.nextElement();
+ // System.out.println("Property: "+propname+" = "+globalProps.getProperty(propname));
+ //}
+
+ }
+
if(operands[0] instanceof CharToken)
{
String name = operands[0].toString();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-31 14:40:47
|
Revision: 806
http://mathlib.svn.sourceforge.net/mathlib/?rev=806&view=rev
Author: st_mueller
Date: 2009-01-31 14:40:41 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
made the preloaded jar file much smaller
Modified Paths:
--------------
JMathLib/trunk/build.xml
Modified: JMathLib/trunk/build.xml
===================================================================
--- JMathLib/trunk/build.xml 2009-01-31 10:39:41 UTC (rev 805)
+++ JMathLib/trunk/build.xml 2009-01-31 14:40:41 UTC (rev 806)
@@ -335,8 +335,6 @@
<!-- misc files -->
<fileset dir="${build.dir}">
<include name="JMathLib.html"/>
- <include name="JMathLib.properties"/>
- <include name="JMathLib.local.properties"/>
<include name="license.txt"/>
<include name="ChangeLog.txt"/>
<include name="JMathLib.html"/>
@@ -375,22 +373,32 @@
<jar jarfile="${dist.dir}/bin/JMathLibSmallApplet.jar" compress="true">
<fileset dir="${dist.dir}/bin">
<include name="**" />
+ <exclude name="JMathLib.properties"/>
<exclude name="jmathlib/webFunctionsList.dat"/>
+ <exclude name="jmathlib/core/functions/FileFunctionLoader.class"/>
+ <exclude name="jmathlib/core/functions/MFileLoader.class"/>
+ <exclude name="jmathlib/core/functions/SFunction.class"/>
+ <exclude name="jmathlib/core/tokens/numbertokens/Int*.class"/>
+ <exclude name="jmathlib/core/tokens/numbertokens/UInt*.class"/>
<exclude name="jmathlib/core/tokens/SparseNumberToken.class"/>
+ <exclude name="jmathlib/core/graphics/axes/Axes3DObject.class"/>
+ <exclude name="jmathlib/core/graphics/axes/coreObjects/*.class"/>
+ <exclude name="jmathlib/core/graphics/axes/plotObjects/**"/>
<exclude name="jmathlib/plugins/**"/>
<exclude name="jmathlib/toolbox/**"/>
<exclude name="jmathlib/tools/**"/>
<exclude name="jmathlib/ui/awt/**"/>
<exclude name="jmathlib/ui/swing/**"/>
+ <exclude name="jmathlib/ui/text/**"/>
<exclude name="jmathlibtests/**"/>
</fileset>
<fileset dir="${dist.dir}/bin">
- <include name="jmathlib/plugins/PluginsManager.class"/>
- <include name="jmathlib/toolbox/general/rand.class"/>
- <include name="jmathlib/toolbox/general/startup.m"/>
- <include name="jmathlib/toolbox/jmathlib/system/disp.class"/>
- <include name="jmathlib/toolbox/jmathlib/system/setdebug.class"/>
- <include name="jmathlib/toolbox/jmathlib/graphics/graph2d/plot.class"/>
+ <include name="jmathlib/core/graphics/axes/coreObjects/LineObject.class"/>
+ <include name="jmathlib/plugins/PluginsManager.class"/>
+ <include name="jmathlib/toolbox/general/rand.class"/>
+ <include name="jmathlib/toolbox/jmathlib/system/disp.class"/>
+ <include name="jmathlib/toolbox/jmathlib/system/setdebug.class"/>
+ <include name="jmathlib/toolbox/jmathlib/graphics/graph2d/plot.class"/>
</fileset>
</jar>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-31 10:39:46
|
Revision: 805
http://mathlib.svn.sourceforge.net/mathlib/?rev=805&view=rev
Author: st_mueller
Date: 2009-01-31 10:39:41 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
moved JMathLib.properties
Removed Paths:
-------------
JMathLib/trunk/JMathLib.properties
Deleted: JMathLib/trunk/JMathLib.properties
===================================================================
--- JMathLib/trunk/JMathLib.properties 2009-01-31 10:38:22 UTC (rev 804)
+++ JMathLib/trunk/JMathLib.properties 2009-01-31 10:39:41 UTC (rev 805)
@@ -1,219 +0,0 @@
-# property file for JMathLib
-#
-#
-# (c) st...@he...
-
-# current version of JMathLib
-jmathlib.version=0.9.4
-jmathlib.release.date=2009/01/30
-jmathlib.release.name=release V0.9.4
-jmathlib.release.description=mayer release
-jmathlib.copyright=(c) 2007, 2008, 2009 Stefan Mueller and others
-
-# website
-jmathlib.website.primary=http://www.jmathlib.de
-jmathlib.website.secondary=http://mathlib.sourceforge.net
-
-# preferences for update manager
-update.auto=yes
-update.site.primary=http://www.jmathlib.de/checkForUpdates/
-update.site.backup=http://mathlib.sourceforge.net/checkForUpdates/
-update.intervall=1
-update.date.last=2009/01/11
-update.date.next=2009/01/13
-update.errors=0
-update.message="welcome to the new version of JMathLib"
-
-
-# Messages to the user
-jmathlib.messages.urgent=""
-jmathlib.messages.immediately=""
-jmathlib.messages.of_the_day=""
-
-
-# Toolboxes
-jmathlib.toolboxes.core.name="core"
-jmathlib.toolboxes.core.version=0.9.0
-jmathlib.toolboxes.core.release=major 0.9.0
-jmathlib.toolboxes.core.description="core toolboxes of JMathLib"
-jmathlib.toolboxes.core.date=2008/06/07
-
-jmathlib.toolboxes.audio.name="audio"
-jmathlib.toolboxes.audio.version=0.0.1
-jmathlib.toolboxes.audio.release=major 0.0.1
-jmathlib.toolboxes.audio.description=audio
-jmathlib.toolboxes.audio.date=2008/01/01
-
-jmathlib.toolboxes.control.name="control"
-jmathlib.toolboxes.control.version=0.0.1
-jmathlib.toolboxes.control.release=major 0.0.1
-jmathlib.toolboxes.control.description=control
-jmathlib.toolboxes.control.date=2008/01/01
-
-jmathlib.toolboxes.cryto.name="cryto"
-jmathlib.toolboxes.cryto.version=0.0.1
-jmathlib.toolboxes.cryto.release=major 0.0.1
-jmathlib.toolboxes.cryto.description=cryto
-jmathlib.toolboxes.cryto.date=2008/01/01
-
-jmathlib.toolboxes.demos.name="demos"
-jmathlib.toolboxes.demos.version=0.0.1
-jmathlib.toolboxes.demos.release=major 0.0.1
-jmathlib.toolboxes.demos.description=demos
-jmathlib.toolboxes.demos.date=2008/01/01
-
-jmathlib.toolboxes.engine.name="engine"
-jmathlib.toolboxes.engine.version=0.0.1
-jmathlib.toolboxes.engine.release=major 0.0.1
-jmathlib.toolboxes.engine.description=engine
-jmathlib.toolboxes.engine.date=2008/01/01
-
-jmathlib.toolboxes.finance.name="finance"
-jmathlib.toolboxes.finance.version=0.0.1
-jmathlib.toolboxes.finance.release=major 0.0.1
-jmathlib.toolboxes.finance.description=finance
-jmathlib.toolboxes.finance.date=2008/01/01
-
-jmathlib.toolboxes.funfun.name="funfun"
-jmathlib.toolboxes.funfun.version=0.0.1
-jmathlib.toolboxes.funfun.release=major 0.0.1
-jmathlib.toolboxes.funfun.description=funfun
-jmathlib.toolboxes.funfun.date=2008/01/01
-
-jmathlib.toolboxes.general.name="general"
-jmathlib.toolboxes.general.version=0.1.0
-jmathlib.toolboxes.general.release=major 0.1.0
-jmathlib.toolboxes.general.description=general
-jmathlib.toolboxes.general.date=2008/06/06
-
-jmathlib.toolboxes.image.name="image"
-jmathlib.toolboxes.image.version=0.0.1
-jmathlib.toolboxes.image.release=major 0.0.1
-jmathlib.toolboxes.image.description=image
-jmathlib.toolboxes.image.date=2008/01/01
-
-jmathlib.toolboxes.integration.name="integration"
-jmathlib.toolboxes.integration.version=0.0.1
-jmathlib.toolboxes.integration.release=major 0.0.1
-jmathlib.toolboxes.integration.description=integration
-jmathlib.toolboxes.integration.date=2008/01/01
-
-jmathlib.toolboxes.io.name="io"
-jmathlib.toolboxes.io.version=0.1.0
-jmathlib.toolboxes.io.release=major 0.1.0
-jmathlib.toolboxes.io.description=io
-jmathlib.toolboxes.io.date=2008/06/06
-
-jmathlib.toolboxes.linearalgebra.name="linearalgebra"
-jmathlib.toolboxes.linearalgebra.version=0.0.1
-jmathlib.toolboxes.linearalgebra.release=major 0.0.1
-jmathlib.toolboxes.linearalgebra.description=linearalgebra
-jmathlib.toolboxes.linearalgebra.date=2008/01/01
-
-jmathlib.toolboxes.miscelleanous.name="miscelleanous"
-jmathlib.toolboxes.miscelleanous.version=0.0.1
-jmathlib.toolboxes.miscelleanous.release=major 0.0.1
-jmathlib.toolboxes.miscelleanous.description=miscelleanous
-jmathlib.toolboxes.miscelleanous.date=2008/01/01
-
-jmathlib.toolboxes.net.name="net"
-jmathlib.toolboxes.net.version=0.0.1
-jmathlib.toolboxes.net.release=major 0.0.1
-jmathlib.toolboxes.net.description=net
-jmathlib.toolboxes.net.date=2008/01/01
-
-jmathlib.toolboxes.ode.name="ode"
-jmathlib.toolboxes.ode.version=0.0.1
-jmathlib.toolboxes.ode.release=major 0.0.1
-jmathlib.toolboxes.ode.description=ode
-jmathlib.toolboxes.ode.date=2008/01/01
-
-jmathlib.toolboxes.optimization.name="optimization"
-jmathlib.toolboxes.optimization.version=0.0.1
-jmathlib.toolboxes.optimization.release=major 0.0.1
-jmathlib.toolboxes.optimization.description=optimization
-jmathlib.toolboxes.optimization.date=2008/01/01
-
-jmathlib.toolboxes.physical_constants.name="physical_constants"
-jmathlib.toolboxes.physical_constants.version=0.0.1
-jmathlib.toolboxes.physical_constants.release=major 0.0.1
-jmathlib.toolboxes.physical_constants.description=physical_constants
-jmathlib.toolboxes.physical_constants.date=2008/01/01
-
-jmathlib.toolboxes.polynomial.name="polynomial"
-jmathlib.toolboxes.polynomial.version=0.0.1
-jmathlib.toolboxes.polynomial.release=major 0.0.1
-jmathlib.toolboxes.polynomial.description=polynomial
-jmathlib.toolboxes.polynomial.date=2008/01/01
-
-jmathlib.toolboxes.quaternion.name="quaternion"
-jmathlib.toolboxes.quaternion.version=0.0.1
-jmathlib.toolboxes.quaternion.release=major 0.0.1
-jmathlib.toolboxes.quaternion.description=quaternion
-jmathlib.toolboxes.quaternion.date=2008/01/01
-
-jmathlib.toolboxes.set.name="set"
-jmathlib.toolboxes.set.version=0.0.1
-jmathlib.toolboxes.set.release=major 0.0.1
-jmathlib.toolboxes.set.description=set
-jmathlib.toolboxes.set.date=2008/01/01
-
-jmathlib.toolboxes.signal.name="signal"
-jmathlib.toolboxes.signal.version=0.0.1
-jmathlib.toolboxes.signal.release=major 0.0.1
-jmathlib.toolboxes.signal.description=signal
-jmathlib.toolboxes.signal.date=2008/01/01
-
-jmathlib.toolboxes.sparse.name="sparse"
-jmathlib.toolboxes.sparse.version=0.0.1
-jmathlib.toolboxes.sparse.release=major 0.0.1
-jmathlib.toolboxes.sparse.description=sparse
-jmathlib.toolboxes.sparse.date=2008/01/01
-
-jmathlib.toolboxes.specfunc.name="specfunc"
-jmathlib.toolboxes.specfunc.version=0.0.1
-jmathlib.toolboxes.specfunc.release=major 0.0.1
-jmathlib.toolboxes.specfunc.description=specfunc
-jmathlib.toolboxes.specfunc.date=2008/01/01
-
-jmathlib.toolboxes.specialmatrix.name="specialmatrix"
-jmathlib.toolboxes.specialmatrix.version=0.0.1
-jmathlib.toolboxes.specialmatrix.release=major 0.0.1
-jmathlib.toolboxes.specialmatrix.description=specialmatrix
-jmathlib.toolboxes.specialmatrix.date=2008/01/01
-
-jmathlib.toolboxes.splines.name="splines"
-jmathlib.toolboxes.splines.version=0.0.1
-jmathlib.toolboxes.splines.release=major 0.0.1
-jmathlib.toolboxes.splines.description=splines
-jmathlib.toolboxes.splines.date=2008/01/01
-
-jmathlib.toolboxes.statistics.name="statistics"
-jmathlib.toolboxes.statistics.version=0.0.1
-jmathlib.toolboxes.statistics.release=major 0.0.1
-jmathlib.toolboxes.statistics.description=statistics
-jmathlib.toolboxes.statistics.date=2008/01/01
-
-jmathlib.toolboxes.string.name="string"
-jmathlib.toolboxes.string.version=0.0.1
-jmathlib.toolboxes.string.release=major 0.0.1
-jmathlib.toolboxes.string.description=string
-jmathlib.toolboxes.string.date=2008/01/01
-
-jmathlib.toolboxes.test.name="test"
-jmathlib.toolboxes.test.version=0.0.1
-jmathlib.toolboxes.test.release=major 0.0.1
-jmathlib.toolboxes.test.description=test
-jmathlib.toolboxes.test.date=2008/01/01
-
-jmathlib.toolboxes.time.name="time"
-jmathlib.toolboxes.time.version=0.0.1
-jmathlib.toolboxes.time.release=major 0.0.1
-jmathlib.toolboxes.time.description=time
-jmathlib.toolboxes.time.date=2008/01/01
-
-jmathlib.toolboxes.trigonometric.name="trigonometric"
-jmathlib.toolboxes.trigonometric.version=0.1.0
-jmathlib.toolboxes.trigonometric.release=major 0.1.0
-jmathlib.toolboxes.trigonometric.description=trigonometric
-jmathlib.toolboxes.trigonometric.date=2008/06/06
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-31 10:38:26
|
Revision: 804
http://mathlib.svn.sourceforge.net/mathlib/?rev=804&view=rev
Author: st_mueller
Date: 2009-01-31 10:38:22 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
moved JMathLib.properties
Added Paths:
-----------
JMathLib/trunk/src/JMathLib.properties
Copied: JMathLib/trunk/src/JMathLib.properties (from rev 803, JMathLib/trunk/JMathLib.properties)
===================================================================
--- JMathLib/trunk/src/JMathLib.properties (rev 0)
+++ JMathLib/trunk/src/JMathLib.properties 2009-01-31 10:38:22 UTC (rev 804)
@@ -0,0 +1,219 @@
+# property file for JMathLib
+#
+#
+# (c) st...@he...
+
+# current version of JMathLib
+jmathlib.version=0.9.4
+jmathlib.release.date=2009/01/30
+jmathlib.release.name=release V0.9.4
+jmathlib.release.description=mayer release
+jmathlib.copyright=(c) 2007, 2008, 2009 Stefan Mueller and others
+
+# website
+jmathlib.website.primary=http://www.jmathlib.de
+jmathlib.website.secondary=http://mathlib.sourceforge.net
+
+# preferences for update manager
+update.auto=yes
+update.site.primary=http://www.jmathlib.de/checkForUpdates/
+update.site.backup=http://mathlib.sourceforge.net/checkForUpdates/
+update.intervall=1
+update.date.last=2009/01/11
+update.date.next=2009/01/13
+update.errors=0
+update.message="welcome to the new version of JMathLib"
+
+
+# Messages to the user
+jmathlib.messages.urgent=""
+jmathlib.messages.immediately=""
+jmathlib.messages.of_the_day=""
+
+
+# Toolboxes
+jmathlib.toolboxes.core.name="core"
+jmathlib.toolboxes.core.version=0.9.0
+jmathlib.toolboxes.core.release=major 0.9.0
+jmathlib.toolboxes.core.description="core toolboxes of JMathLib"
+jmathlib.toolboxes.core.date=2008/06/07
+
+jmathlib.toolboxes.audio.name="audio"
+jmathlib.toolboxes.audio.version=0.0.1
+jmathlib.toolboxes.audio.release=major 0.0.1
+jmathlib.toolboxes.audio.description=audio
+jmathlib.toolboxes.audio.date=2008/01/01
+
+jmathlib.toolboxes.control.name="control"
+jmathlib.toolboxes.control.version=0.0.1
+jmathlib.toolboxes.control.release=major 0.0.1
+jmathlib.toolboxes.control.description=control
+jmathlib.toolboxes.control.date=2008/01/01
+
+jmathlib.toolboxes.cryto.name="cryto"
+jmathlib.toolboxes.cryto.version=0.0.1
+jmathlib.toolboxes.cryto.release=major 0.0.1
+jmathlib.toolboxes.cryto.description=cryto
+jmathlib.toolboxes.cryto.date=2008/01/01
+
+jmathlib.toolboxes.demos.name="demos"
+jmathlib.toolboxes.demos.version=0.0.1
+jmathlib.toolboxes.demos.release=major 0.0.1
+jmathlib.toolboxes.demos.description=demos
+jmathlib.toolboxes.demos.date=2008/01/01
+
+jmathlib.toolboxes.engine.name="engine"
+jmathlib.toolboxes.engine.version=0.0.1
+jmathlib.toolboxes.engine.release=major 0.0.1
+jmathlib.toolboxes.engine.description=engine
+jmathlib.toolboxes.engine.date=2008/01/01
+
+jmathlib.toolboxes.finance.name="finance"
+jmathlib.toolboxes.finance.version=0.0.1
+jmathlib.toolboxes.finance.release=major 0.0.1
+jmathlib.toolboxes.finance.description=finance
+jmathlib.toolboxes.finance.date=2008/01/01
+
+jmathlib.toolboxes.funfun.name="funfun"
+jmathlib.toolboxes.funfun.version=0.0.1
+jmathlib.toolboxes.funfun.release=major 0.0.1
+jmathlib.toolboxes.funfun.description=funfun
+jmathlib.toolboxes.funfun.date=2008/01/01
+
+jmathlib.toolboxes.general.name="general"
+jmathlib.toolboxes.general.version=0.1.0
+jmathlib.toolboxes.general.release=major 0.1.0
+jmathlib.toolboxes.general.description=general
+jmathlib.toolboxes.general.date=2008/06/06
+
+jmathlib.toolboxes.image.name="image"
+jmathlib.toolboxes.image.version=0.0.1
+jmathlib.toolboxes.image.release=major 0.0.1
+jmathlib.toolboxes.image.description=image
+jmathlib.toolboxes.image.date=2008/01/01
+
+jmathlib.toolboxes.integration.name="integration"
+jmathlib.toolboxes.integration.version=0.0.1
+jmathlib.toolboxes.integration.release=major 0.0.1
+jmathlib.toolboxes.integration.description=integration
+jmathlib.toolboxes.integration.date=2008/01/01
+
+jmathlib.toolboxes.io.name="io"
+jmathlib.toolboxes.io.version=0.1.0
+jmathlib.toolboxes.io.release=major 0.1.0
+jmathlib.toolboxes.io.description=io
+jmathlib.toolboxes.io.date=2008/06/06
+
+jmathlib.toolboxes.linearalgebra.name="linearalgebra"
+jmathlib.toolboxes.linearalgebra.version=0.0.1
+jmathlib.toolboxes.linearalgebra.release=major 0.0.1
+jmathlib.toolboxes.linearalgebra.description=linearalgebra
+jmathlib.toolboxes.linearalgebra.date=2008/01/01
+
+jmathlib.toolboxes.miscelleanous.name="miscelleanous"
+jmathlib.toolboxes.miscelleanous.version=0.0.1
+jmathlib.toolboxes.miscelleanous.release=major 0.0.1
+jmathlib.toolboxes.miscelleanous.description=miscelleanous
+jmathlib.toolboxes.miscelleanous.date=2008/01/01
+
+jmathlib.toolboxes.net.name="net"
+jmathlib.toolboxes.net.version=0.0.1
+jmathlib.toolboxes.net.release=major 0.0.1
+jmathlib.toolboxes.net.description=net
+jmathlib.toolboxes.net.date=2008/01/01
+
+jmathlib.toolboxes.ode.name="ode"
+jmathlib.toolboxes.ode.version=0.0.1
+jmathlib.toolboxes.ode.release=major 0.0.1
+jmathlib.toolboxes.ode.description=ode
+jmathlib.toolboxes.ode.date=2008/01/01
+
+jmathlib.toolboxes.optimization.name="optimization"
+jmathlib.toolboxes.optimization.version=0.0.1
+jmathlib.toolboxes.optimization.release=major 0.0.1
+jmathlib.toolboxes.optimization.description=optimization
+jmathlib.toolboxes.optimization.date=2008/01/01
+
+jmathlib.toolboxes.physical_constants.name="physical_constants"
+jmathlib.toolboxes.physical_constants.version=0.0.1
+jmathlib.toolboxes.physical_constants.release=major 0.0.1
+jmathlib.toolboxes.physical_constants.description=physical_constants
+jmathlib.toolboxes.physical_constants.date=2008/01/01
+
+jmathlib.toolboxes.polynomial.name="polynomial"
+jmathlib.toolboxes.polynomial.version=0.0.1
+jmathlib.toolboxes.polynomial.release=major 0.0.1
+jmathlib.toolboxes.polynomial.description=polynomial
+jmathlib.toolboxes.polynomial.date=2008/01/01
+
+jmathlib.toolboxes.quaternion.name="quaternion"
+jmathlib.toolboxes.quaternion.version=0.0.1
+jmathlib.toolboxes.quaternion.release=major 0.0.1
+jmathlib.toolboxes.quaternion.description=quaternion
+jmathlib.toolboxes.quaternion.date=2008/01/01
+
+jmathlib.toolboxes.set.name="set"
+jmathlib.toolboxes.set.version=0.0.1
+jmathlib.toolboxes.set.release=major 0.0.1
+jmathlib.toolboxes.set.description=set
+jmathlib.toolboxes.set.date=2008/01/01
+
+jmathlib.toolboxes.signal.name="signal"
+jmathlib.toolboxes.signal.version=0.0.1
+jmathlib.toolboxes.signal.release=major 0.0.1
+jmathlib.toolboxes.signal.description=signal
+jmathlib.toolboxes.signal.date=2008/01/01
+
+jmathlib.toolboxes.sparse.name="sparse"
+jmathlib.toolboxes.sparse.version=0.0.1
+jmathlib.toolboxes.sparse.release=major 0.0.1
+jmathlib.toolboxes.sparse.description=sparse
+jmathlib.toolboxes.sparse.date=2008/01/01
+
+jmathlib.toolboxes.specfunc.name="specfunc"
+jmathlib.toolboxes.specfunc.version=0.0.1
+jmathlib.toolboxes.specfunc.release=major 0.0.1
+jmathlib.toolboxes.specfunc.description=specfunc
+jmathlib.toolboxes.specfunc.date=2008/01/01
+
+jmathlib.toolboxes.specialmatrix.name="specialmatrix"
+jmathlib.toolboxes.specialmatrix.version=0.0.1
+jmathlib.toolboxes.specialmatrix.release=major 0.0.1
+jmathlib.toolboxes.specialmatrix.description=specialmatrix
+jmathlib.toolboxes.specialmatrix.date=2008/01/01
+
+jmathlib.toolboxes.splines.name="splines"
+jmathlib.toolboxes.splines.version=0.0.1
+jmathlib.toolboxes.splines.release=major 0.0.1
+jmathlib.toolboxes.splines.description=splines
+jmathlib.toolboxes.splines.date=2008/01/01
+
+jmathlib.toolboxes.statistics.name="statistics"
+jmathlib.toolboxes.statistics.version=0.0.1
+jmathlib.toolboxes.statistics.release=major 0.0.1
+jmathlib.toolboxes.statistics.description=statistics
+jmathlib.toolboxes.statistics.date=2008/01/01
+
+jmathlib.toolboxes.string.name="string"
+jmathlib.toolboxes.string.version=0.0.1
+jmathlib.toolboxes.string.release=major 0.0.1
+jmathlib.toolboxes.string.description=string
+jmathlib.toolboxes.string.date=2008/01/01
+
+jmathlib.toolboxes.test.name="test"
+jmathlib.toolboxes.test.version=0.0.1
+jmathlib.toolboxes.test.release=major 0.0.1
+jmathlib.toolboxes.test.description=test
+jmathlib.toolboxes.test.date=2008/01/01
+
+jmathlib.toolboxes.time.name="time"
+jmathlib.toolboxes.time.version=0.0.1
+jmathlib.toolboxes.time.release=major 0.0.1
+jmathlib.toolboxes.time.description=time
+jmathlib.toolboxes.time.date=2008/01/01
+
+jmathlib.toolboxes.trigonometric.name="trigonometric"
+jmathlib.toolboxes.trigonometric.version=0.1.0
+jmathlib.toolboxes.trigonometric.release=major 0.1.0
+jmathlib.toolboxes.trigonometric.description=trigonometric
+jmathlib.toolboxes.trigonometric.date=2008/06/06
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 21:06:53
|
Revision: 803
http://mathlib.svn.sourceforge.net/mathlib/?rev=803&view=rev
Author: st_mueller
Date: 2009-01-30 21:06:47 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
removed JMathLib.local.properties from builder
Modified Paths:
--------------
JMathLib/trunk/installer/JMathLibInstall.nsi
Modified: JMathLib/trunk/installer/JMathLibInstall.nsi
===================================================================
--- JMathLib/trunk/installer/JMathLibInstall.nsi 2009-01-30 21:06:00 UTC (rev 802)
+++ JMathLib/trunk/installer/JMathLibInstall.nsi 2009-01-30 21:06:47 UTC (rev 803)
@@ -145,7 +145,7 @@
File "..\upload\jmathlib\JMathLib.exe"
File "..\upload\jmathlib\JMathLibSwing.exe"
File "..\upload\jmathlib\JMathLib.properties"
- File "..\upload\jmathlib\JMathLib.local.properties"
+ ;File "..\upload\jmathlib\JMathLib.local.properties"
File "..\upload\jmathlib\ChangeLog.txt"
File "..\upload\jmathlib\JMathLib.html"
File "..\upload\jmathlib\license.txt"
@@ -218,7 +218,7 @@
RMDir /r "$INSTDIR\handbook"
Delete "$INSTDIR\license.txt"
Delete "$INSTDIR\JMathLib.properties"
- Delete "$INSTDIR\JMathLib.local.properties"
+ ;Delete "$INSTDIR\JMathLib.local.properties"
Delete "$INSTDIR\JMathLib.log"
Delete "$INSTDIR\license.txt"
Delete "$INSTDIR\ChangeLog.txt"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 21:06:02
|
Revision: 802
http://mathlib.svn.sourceforge.net/mathlib/?rev=802&view=rev
Author: st_mueller
Date: 2009-01-30 21:06:00 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
correction on working directory
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java 2009-01-30 21:05:33 UTC (rev 801)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java 2009-01-30 21:06:00 UTC (rev 802)
@@ -67,7 +67,7 @@
/* The first line of the file is a comment */
- line = "# created with createFunctionsList.java";
+ line = "# created with createfunctionslist()";
outWriter.write(line, 0, line.length());
outWriter.newLine();
line = "# This is a generated file. DO NOT EDIT!";
@@ -101,7 +101,10 @@
!line.contains(".svn") )
{
// remove preceding absolute path
- line = line.substring((globals.getWorkingDirectory().getAbsolutePath()+"/bin/").length());
+ File f = new File(globals.getWorkingDirectory(),"bin/");
+
+ //ErrorLogger.debugLine(f.getCanonicalPath().toString());
+ line = line.substring(f.getCanonicalPath().toString().length()+1);
ErrorLogger.debugLine("path = "+ line);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 21:05:39
|
Revision: 801
http://mathlib.svn.sourceforge.net/mathlib/?rev=801&view=rev
Author: st_mueller
Date: 2009-01-30 21:05:33 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
correction on working directory
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/functions/FunctionManager.java
Modified: JMathLib/trunk/src/jmathlib/core/functions/FunctionManager.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/functions/FunctionManager.java 2009-01-30 19:09:04 UTC (rev 800)
+++ JMathLib/trunk/src/jmathlib/core/functions/FunctionManager.java 2009-01-30 21:05:33 UTC (rev 801)
@@ -43,7 +43,7 @@
if (runningStandalone) {
//Add the predefined (system) function loader for the current directory.
- functionLoaders.add(new SystemFileFunctionLoader(new File(""),false)); //"." + File.separator), false));
+ functionLoaders.add(new SystemFileFunctionLoader(new File("."),false)); //"." + File.separator), false));
//webLoader = null;
String classPath = System.getProperty("java.class.path");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 19:09:09
|
Revision: 800
http://mathlib.svn.sourceforge.net/mathlib/?rev=800&view=rev
Author: st_mueller
Date: 2009-01-30 19:09:04 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
Added Paths:
-----------
JMathLib/trunk/doc/src/tokens.svg
Added: JMathLib/trunk/doc/src/tokens.svg
===================================================================
--- JMathLib/trunk/doc/src/tokens.svg (rev 0)
+++ JMathLib/trunk/doc/src/tokens.svg 2009-01-30 19:09:04 UTC (rev 800)
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.0"
+ width="1052.3622"
+ height="744.09448"
+ id="svg2">
+ <defs
+ id="defs4" />
+ <g
+ id="layer1">
+ <g
+ transform="translate(332.85714,-24.285714)"
+ id="g7892">
+ <g
+ transform="translate(7.1428572,-24.285714)"
+ id="g7969">
+ <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect2160" />
+ <flowRoot
+ transform="translate(11.428572,-7.1428576)"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="flowRoot7860"
+ xml:space="preserve"><flowRegion
+ id="flowRegion7862"><rect
+ width="257.14285"
+ height="77.142853"
+ x="110"
+ y="103.79076"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="rect7864" /></flowRegion><flowPara
+ id="flowPara7866">RootObject</flowPara></flowRoot> </g>
+ <g
+ transform="translate(8.5714286,34.285715)"
+ id="g7976">
+ <g
+ id="g7988">
+ <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect7978" />
+ <flowRoot
+ transform="translate(37.142858,-8.571429)"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="flowRoot7980"
+ xml:space="preserve"><flowRegion
+ id="flowRegion7982"><rect
+ width="257.14285"
+ height="77.142853"
+ x="110"
+ y="103.79076"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="rect7984" /></flowRegion><flowPara
+ id="flowPara7986">Token</flowPara></flowRoot> </g>
+ </g>
+ </g>
+ <g
+ transform="translate(19.999997,58.571429)"
+ id="g7899">
+ <g
+ transform="translate(97.142857,5.7142853)"
+ id="g7917">
+ <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect7901" />
+ <flowRoot
+ transform="translate(-4.2857118,-7.1428579)"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="flowRoot7903"
+ xml:space="preserve"><flowRegion
+ id="flowRegion7905"><rect
+ width="257.14285"
+ height="77.142853"
+ x="110"
+ y="103.79076"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="rect7907" /></flowRegion><flowPara
+ id="flowPara7911">OperandToken</flowPara></flowRoot> <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect7915" />
+ </g>
+ <g
+ transform="translate(418.57142,9.9999993)"
+ id="g7925">
+ <g
+ transform="translate(150,-1.4285714)"
+ id="g7939">
+ <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect7927" />
+ <flowRoot
+ transform="translate(-4.2857118,-7.1428579)"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="flowRoot7929"
+ xml:space="preserve"><flowRegion
+ id="flowRegion7931"><rect
+ width="257.14285"
+ height="77.142853"
+ x="110"
+ y="103.79076"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="rect7933" /></flowRegion><flowPara
+ id="flowPara7935">OperatorToken</flowPara></flowRoot> <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect7937" />
+ </g>
+ </g>
+ <g
+ transform="translate(97.142857,80)"
+ id="g7947">
+ <g
+ id="g7961">
+ <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect7949" />
+ <flowRoot
+ transform="translate(7.7142882,-7.1428579)"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="flowRoot7951"
+ xml:space="preserve"><flowRegion
+ id="flowRegion7953"><rect
+ width="257.14285"
+ height="77.142853"
+ x="110"
+ y="103.79076"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans"
+ id="rect7955" /></flowRegion><flowPara
+ id="flowPara7957">DataToken</flowPara></flowRoot> <rect
+ width="182.93251"
+ height="41.939518"
+ ry="0"
+ x="89.954224"
+ y="82.231926"
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.39870894;stroke-opacity:1"
+ id="rect7959" />
+ </g>
+ </g>
+ </g>
+ </g>
+</svg>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 19:08:31
|
Revision: 799
http://mathlib.svn.sourceforge.net/mathlib/?rev=799&view=rev
Author: st_mueller
Date: 2009-01-30 19:08:26 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
changed handling of preferences/properties
Modified Paths:
--------------
JMathLib/trunk/ChangeLog.txt
JMathLib/trunk/build.properties
Removed Paths:
-------------
JMathLib/trunk/JMathLib.local.properties
Modified: JMathLib/trunk/ChangeLog.txt
===================================================================
--- JMathLib/trunk/ChangeLog.txt 2009-01-30 19:04:24 UTC (rev 798)
+++ JMathLib/trunk/ChangeLog.txt 2009-01-30 19:08:26 UTC (rev 799)
@@ -9,6 +9,13 @@
---- HISTORY ------------------------------------------------------------------
2009/01/xx stefan:
+2009/01/30 stefan: changed handling of properties
+ removed getLocalProperty, setLocalProperty
+ renamed getGlobalProperty into getProperty
+ renamed setGlobalProperty into setProperty
+ JMathLib.local.properties is obsolete
+ JMathLib.propertis is the master now
+
2009/01/26 stefan: changed MathLibException into JMathLibException
2009/01/25 stefan: JMathLib has not been thread save for more than one
Deleted: JMathLib/trunk/JMathLib.local.properties
===================================================================
--- JMathLib/trunk/JMathLib.local.properties 2009-01-30 19:04:24 UTC (rev 798)
+++ JMathLib/trunk/JMathLib.local.properties 2009-01-30 19:08:26 UTC (rev 799)
@@ -1,10 +0,0 @@
-#JMathLib local property file
-#Sat Nov 30 20:00:00 CEST 2008
-update.auto=yes
-jmathlib.release.date=2009/01/29
-update.errors=0
-update.site.primary=http://www.jmathlib.de/checkForUpdates/
-update.site.backup=http://mathlib.sourceforge.net/checkForUpdates/
-update.date.next=00.00.00
-update.intervall=1
-update.date.last=2009/01/29
Modified: JMathLib/trunk/build.properties
===================================================================
--- JMathLib/trunk/build.properties 2009-01-30 19:04:24 UTC (rev 798)
+++ JMathLib/trunk/build.properties 2009-01-30 19:08:26 UTC (rev 799)
@@ -6,10 +6,10 @@
project=JMathLib
# Project version
-version=0.9.3
+version=0.9.4
# Release date
-release_date=2009/01/11
+release_date=2009/01/30
# final project name
final.name=${project}_${version}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 19:04:30
|
Revision: 798
http://mathlib.svn.sourceforge.net/mathlib/?rev=798&view=rev
Author: st_mueller
Date: 2009-01-30 19:04:24 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
changed handling of preferences/properties
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
JMathLib/trunk/src/jmathlib/core/interpreter/Interpreter.java
Removed Paths:
-------------
JMathLib/trunk/src/jmathlib/core/interpreter/Preferences.java
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-30 19:03:54 UTC (rev 797)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-30 19:04:24 UTC (rev 798)
@@ -11,6 +11,7 @@
import java.io.*;
import java.util.Locale;
+import java.util.Properties;
import java.applet.Applet;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
@@ -47,6 +48,9 @@
/**stores the number format for displaying the number*/
public NumberFormat numFormat = new DecimalFormat("0.0000", new DecimalFormatSymbols(Locale.ENGLISH));
+ /** global properties */
+ private static Properties props = new Properties();
+
/**Initialises the global values
* @param _interpreter = the Interpreter object
* @param _runningStandalone = true if this was run from an application
@@ -204,4 +208,71 @@
numFormat = _numFormat;
}
+ /**
+ *
+ *
+ */
+ public void loadPropertiesFromFile()
+ {
+
+ // load global properties from disc
+ try
+ {
+ props.load(new FileInputStream(new File("JMathLib.properties")));
+ }
+ catch (Exception e)
+ {
+ System.out.println("Properties global error");
+ }
+ //System.out.println("Properties loaded");
+
+ // display properties
+ //Enumeration propnames = props.propertyNames();
+ //while (globalPropnames.hasMoreElements())
+ //{
+ // String propname = (String)globalPropnames.nextElement();
+ // System.out.println("Property: "+propname+" = "+globalProps.getProperty(propname));
+ //}
+
+
+ }
+
+ /**
+ *
+ */
+ public void storePropertiesToFile()
+ {
+
+ // store properties back to file
+ try
+ {
+ props.store(new FileOutputStream(new File("JMathLib.properties")),
+ "JMathLib property file" );
+ }
+ catch (Exception e)
+ {
+ System.out.println("Property: Error");
+ }
+ }
+
+ /**
+ *
+ * @param property
+ * @return
+ */
+ public String getProperty(String property)
+ {
+ return props.getProperty(property);
+ }
+
+ /**
+ *
+ * @param property
+ * @param value
+ */
+ public void setProperty(String property, String value)
+ {
+ props.setProperty(property, value);
+ }
+
}
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/Interpreter.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/Interpreter.java 2009-01-30 19:03:54 UTC (rev 797)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/Interpreter.java 2009-01-30 19:04:24 UTC (rev 798)
@@ -30,9 +30,6 @@
/**for testing purposes additional throwing of errors can be enables */
public boolean throwErrorsB = false;
- /** list of preferences */
- public Preferences prefs = new Preferences();
-
/**Constructs the interpreter and sets the constants
* @param _runningStandalone = true if this is being used from an application
*/
@@ -59,7 +56,7 @@
outputPanel = null;
// read preferences from a file on the disc or on the web
- prefs.loadPropertiesFromFile();
+ globals.loadPropertiesFromFile();
}
@@ -98,7 +95,7 @@
executeExpression("finish");
// store current properties to file
- prefs.storeLocalPropertiesToFile();
+ globals.storePropertiesToFile();
}
}
Deleted: JMathLib/trunk/src/jmathlib/core/interpreter/Preferences.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/Preferences.java 2009-01-30 19:03:54 UTC (rev 797)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/Preferences.java 2009-01-30 19:04:24 UTC (rev 798)
@@ -1,123 +0,0 @@
-package jmathlib.core.interpreter;
-
-//import MathLib.Tokens.*;
-import java.util.*;
-import java.io.*;
-
-/**
- *
- */
-public class Preferences
-{
-
- Properties globalProps = new Properties(); // global properties
- Properties localProps = new Properties(); // local properties
-
- //SwingUI KEYS
- public static final String MFUNCTION_FILE_HISTORY = "MathLib.UI.Swing.MFunctionFileHistory";
- /**
- *
- */
- public Preferences()
- {
- }
-
- /**
- *
- *
- */
- public void loadPropertiesFromFile()
- {
-
- // load globa properties from disc
- try
- {
- globalProps.load(new FileInputStream(new File("JMathLib.properties")));
- }
- catch (Exception e)
- {
- System.out.println("Properties error");
- }
- //System.out.println("Properties loaded");
-
- // display properties
- Enumeration globalPropnames = globalProps.propertyNames();
- //while (globalPropnames.hasMoreElements())
- //{
- // String propname = (String)globalPropnames.nextElement();
- // System.out.println("Property: "+propname+" = "+globalProps.getProperty(propname));
- //}
-
-
- // load local properties from disc
- try
- {
- localProps.load(new FileInputStream(new File("JMathLib.local.properties")));
- }
- catch (Exception e)
- {
- System.out.println("Properties local error");
- }
-
- // display properties
- Enumeration localPropnames = localProps.propertyNames();
- //while (localPropnames.hasMoreElements())
- //{
- // String propname = (String)localPropnames.nextElement();
- // System.out.println("Property (local): "+propname+" = "+localProps.getProperty(propname));
- //}
-
- // check if all global properties are also set in local properties
- // -> in case global property not available in local property, copy global to local property
- globalPropnames = globalProps.propertyNames();
- while (globalPropnames.hasMoreElements())
- {
- String propname = (String)globalPropnames.nextElement();
- if (localProps.getProperty(propname)== null)
- {
- System.out.println("global Property: "+propname+" not local yet");
- localProps.setProperty(propname, (String)globalProps.getProperty(propname));
- }
- }
-
- }
-
- /**
- *
- */
- public void storeLocalPropertiesToFile()
- {
-
- // only store local properties back to file
- try
- {
- localProps.store(new FileOutputStream(new File("JMathLib.local.properties")),
- "JMathLib local property file" );
- }
- catch (Exception e)
- {
- System.out.println("Property: Error");
- }
- }
-
- public String getGlobalProperty(String property)
- {
- return globalProps.getProperty(property);
- }
-
- public void setGlobalProperty(String property, String value)
- {
- globalProps.setProperty(property, value);
- }
-
- public String getLocalProperty(String property)
- {
- return localProps.getProperty(property);
- }
-
- public void setLocalProperty(String property, String value)
- {
- localProps.setProperty(property, value);
- }
-
-}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 19:04:08
|
Revision: 797
http://mathlib.svn.sourceforge.net/mathlib/?rev=797&view=rev
Author: st_mueller
Date: 2009-01-30 19:03:54 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
changed handling of preferences/properties
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/ui/awt/GUI.java
Modified: JMathLib/trunk/src/jmathlib/ui/awt/GUI.java
===================================================================
--- JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2009-01-30 19:02:16 UTC (rev 796)
+++ JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2009-01-30 19:03:54 UTC (rev 797)
@@ -238,11 +238,11 @@
this.setTitle(TITLE + " - Console Window");
// in case an update is available inform the user
- String u = interpreter.prefs.getLocalProperty("update.newversionavailable");
+ String u = interpreter.globals.getProperty("update.newversionavailable");
if ((u!=null) && u.equals("yes"))
{
this.setTitle(TITLE + " - (NEW version available: type update at prompt)");
- String s = interpreter.prefs.getLocalProperty("update.newversionavailable.message01");
+ String s = interpreter.globals.getProperty("update.newversionavailable.message01");
if (s==null)
answer.displayText("A NEW version of JMathLib is available\n type update or visit www.jmathlib.de");
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 19:02:35
|
Revision: 796
http://mathlib.svn.sourceforge.net/mathlib/?rev=796&view=rev
Author: st_mueller
Date: 2009-01-30 19:02:16 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
changed handling of preferences/properties
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/checkforupdates.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/update.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/ver.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/version.java
Added Paths:
-----------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getjmathlibproperty.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setjmathlibproperty.java
Removed Paths:
-------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getglobalproperty.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getlocalproperty.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setglobalproperty.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setlocalproperty.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/checkforupdates.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/checkforupdates.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/checkforupdates.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -25,7 +25,7 @@
String updateSiteS = "http://www.jmathlib.de/checkForUpdates/";
boolean silentB = false;
- s = globals.getInterpreter().prefs.getLocalProperty("update.site.primary");
+ s = globals.getProperty("update.site.primary");
if (s != null)
updateSiteS = s;
@@ -52,13 +52,13 @@
globals.getInterpreter().displayText("Checking for Updates at "+updateSiteS);
- String[] lastUpdateS = globals.getInterpreter().prefs.getLocalProperty("update.date.last").split("/");
+ String[] lastUpdateS = globals.getProperty("update.date.last").split("/");
int year = Integer.parseInt(lastUpdateS[0]);
int month = Integer.parseInt(lastUpdateS[1])-1;
int day = Integer.parseInt(lastUpdateS[2]);
//getInterpreter().displayText("check:"+year+"/"+month+"/"+day);
- int intervall = Integer.parseInt(globals.getInterpreter().prefs.getLocalProperty("update.intervall"));
+ int intervall = Integer.parseInt(globals.getProperty("update.intervall"));
GregorianCalendar calFile = new GregorianCalendar(year,month,day);
GregorianCalendar calCur = new GregorianCalendar();
@@ -142,7 +142,7 @@
System.out.println("checkForUpdates: Properties error");
}
- String[] localVersionS = globals.getInterpreter().prefs.getLocalProperty("jmathlib.version").replace("/",".").split("\\.");
+ String[] localVersionS = globals.getProperty("jmathlib.version").replace("/",".").split("\\.");
String[] webVersionS = props.getProperty("jmathlib.version").replace("/",".").split("\\.");
// build version number of local version
@@ -172,12 +172,12 @@
{
// set marker for next startup
- globals.getInterpreter().prefs.setLocalProperty("update.newversionavailable","yes");
+ globals.setProperty("update.newversionavailable","yes");
s = props.getProperty("update.newversionavailable.message01");
if (s!=null)
{
- globals.getInterpreter().prefs.setLocalProperty("update.newversionavailable.message01", s);
+ globals.setProperty("update.newversionavailable.message01", s);
globals.getInterpreter().displayText(s);
}
else
@@ -187,7 +187,7 @@
s = props.getProperty("update.newversionavailable.message02");
if (s!=null)
{
- globals.getInterpreter().prefs.setLocalProperty("update.newversionavailable.message02", s);
+ globals.setProperty("update.newversionavailable.message02", s);
globals.getInterpreter().displayText(s);
}
}
@@ -219,23 +219,23 @@
String checkedDate = Integer.toString(cal.get(Calendar.YEAR)) + "/"
+ Integer.toString(cal.get(Calendar.MONTH)+1) + "/"
+ Integer.toString(cal.get(Calendar.DAY_OF_MONTH));
- globals.getInterpreter().prefs.setLocalProperty("update.date.last", checkedDate);
+ globals.setProperty("update.date.last", checkedDate);
// update link to primary update-site
s= props.getProperty("update.site.primary");
if (s!=null)
- globals.getInterpreter().prefs.setLocalProperty("update.site.primary",s);
+ globals.setProperty("update.site.primary",s);
// update link to backup update-site
s= props.getProperty("update.site.backup");
if (s!=null)
- globals.getInterpreter().prefs.setLocalProperty("update.site.backup",s);
+ globals.setProperty("update.site.backup",s);
// update message of the day
s= props.getProperty("message.of.the.day");
if (s!=null)
- globals.getInterpreter().prefs.setLocalProperty("message.of.the.day",s);
+ globals.setProperty("message.of.the.day",s);
}
Deleted: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getglobalproperty.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getglobalproperty.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getglobalproperty.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -1,52 +0,0 @@
-package jmathlib.toolbox.jmathlib.system;
-
-import jmathlib.core.functions.ExternalFunction;
-import jmathlib.core.interpreter.GlobalValues;
-import jmathlib.core.tokens.Token;
-import jmathlib.core.tokens.CharToken;
-import jmathlib.core.tokens.OperandToken;
-
-/**External function to get a enviroment variable*/
-public class getglobalproperty extends ExternalFunction
-{
- /**Returns an enviroment variable
- @param operand[0] = the name of the variable
- @param operand[1] = a default value (optional)
- @return the enviroment value*/
- public OperandToken evaluate(Token[] operands, GlobalValues globals)
- {
- OperandToken result = null;
-
- if (getNArgIn(operands)!=1)
- throwMathLibException("getglobalproperty: number of arguments != 1");
-
-
- if (!(operands[0] instanceof CharToken))
- throwMathLibException("getglobalproperty: number of arguments != 1");
-
- String name = operands[0].toString();
- String defaultVal = "";
-
-
- String property = globals.getInterpreter().prefs.getGlobalProperty(name);
-
- result = new CharToken(property);
-
- return result;
- }
-}
-
-/*
-@GROUP
-system
-@SYNTAX
-GETENV(variablename)
-@DOC
-Returns the value of the enviromental variable variablename.
-@NOTES
-@EXAMPLES
-getlocal("HOME")= "/home/user"
-@SEE
-getenv, getglobalproperty, setlocalproperty, setglobalproperty
-*/
-
Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getjmathlibproperty.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getjmathlibproperty.java (rev 0)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getjmathlibproperty.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -0,0 +1,52 @@
+package jmathlib.toolbox.jmathlib.system;
+
+import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
+import jmathlib.core.tokens.Token;
+import jmathlib.core.tokens.CharToken;
+import jmathlib.core.tokens.OperandToken;
+
+/**External function to get a enviroment variable*/
+public class getjmathlibproperty extends ExternalFunction
+{
+ /**Returns an enviroment variable
+ @param operand[0] = the name of the variable
+ @param operand[1] = a default value (optional)
+ @return the enviroment value*/
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
+ {
+ OperandToken result = null;
+
+ if (getNArgIn(operands)!=1)
+ throwMathLibException("getjmathlibproperty: number of arguments != 1");
+
+
+ if (!(operands[0] instanceof CharToken))
+ throwMathLibException("getjmathlibproperty: number of arguments != 1");
+
+ String name = operands[0].toString();
+ String defaultVal = "";
+
+
+ String property = globals.getProperty(name);
+
+ result = new CharToken(property);
+
+ return result;
+ }
+}
+
+/*
+@GROUP
+system
+@SYNTAX
+getjmathlibproperty(variablename)
+@DOC
+Returns the value of the enviromental variable variablename.
+@NOTES
+@EXAMPLES
+getlocal("HOME")= "/home/user"
+@SEE
+getenv, setjmathlibproperty
+*/
+
Deleted: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getlocalproperty.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getlocalproperty.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getlocalproperty.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -1,52 +0,0 @@
-package jmathlib.toolbox.jmathlib.system;
-
-import jmathlib.core.functions.ExternalFunction;
-import jmathlib.core.interpreter.GlobalValues;
-import jmathlib.core.tokens.Token;
-import jmathlib.core.tokens.CharToken;
-import jmathlib.core.tokens.OperandToken;
-
-/**External function to get a enviroment variable*/
-public class getlocalproperty extends ExternalFunction
-{
- /**Returns an enviroment variable
- @param operand[0] = the name of the variable
- @param operand[1] = a default value (optional)
- @return the enviroment value*/
- public OperandToken evaluate(Token[] operands, GlobalValues globals)
- {
- OperandToken result = null;
-
- if (getNArgIn(operands)!=1)
- throwMathLibException("getlocalproperty: number of arguments != 1");
-
-
- if (!(operands[0] instanceof CharToken))
- throwMathLibException("getlocalproperty: number of arguments != 1");
-
- String name = operands[0].toString();
- String defaultVal = "";
-
-
- String property = globals.getInterpreter().prefs.getLocalProperty(name);
-
- result = new CharToken(property);
-
- return result;
- }
-}
-
-/*
-@GROUP
-system
-@SYNTAX
-GETENV(variablename)
-@DOC
-Returns the value of the enviromental variable variablename.
-@NOTES
-@EXAMPLES
-getlocal("HOME")= "/home/user"
-@SEE
-getenv, getglobalproperty, setlocalproperty, setglobalproperty
-*/
-
Deleted: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setglobalproperty.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setglobalproperty.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setglobalproperty.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -1,51 +0,0 @@
-package jmathlib.toolbox.jmathlib.system;
-
-import jmathlib.core.functions.ExternalFunction;
-import jmathlib.core.interpreter.GlobalValues;
-import jmathlib.core.tokens.Token;
-import jmathlib.core.tokens.CharToken;
-import jmathlib.core.tokens.OperandToken;
-
-/**External function to get a enviroment variable*/
-public class setglobalproperty extends ExternalFunction
-{
- /**Returns an enviroment variable
- @param operand[0] = the name of the variable
- @param operand[1] = a default value (optional)
- @return the enviroment value*/
- public OperandToken evaluate(Token[] operands, GlobalValues globals)
- {
- OperandToken result = null;
-
- if (getNArgIn(operands)!=2)
- throwMathLibException("setglobalproperty: number of arguments != 2");
-
-
- if ( (!(operands[0] instanceof CharToken)) &&
- (!(operands[1] instanceof CharToken)) )
- throwMathLibException("setglobalproperty: arguments must be strings");
-
- String name = operands[0].toString();
- String prop = operands[1].toString();
-
- globals.getInterpreter().prefs.setGlobalProperty(name, prop);
-
-
- return result;
- }
-}
-
-/*
-@GROUP
-system
-@SYNTAX
-setglobalproperty(property name, value)
-@DOC
-Returns the value of the enviromental variable variablename.
-@NOTES
-@EXAMPLES
-GETENV("HOME")= "/home/user"
-@SEE
-setlocalproperty, getlocalproperty, getglobalproperty
-*/
-
Copied: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setjmathlibproperty.java (from rev 713, JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setglobalproperty.java)
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setjmathlibproperty.java (rev 0)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setjmathlibproperty.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -0,0 +1,51 @@
+package jmathlib.toolbox.jmathlib.system;
+
+import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
+import jmathlib.core.tokens.Token;
+import jmathlib.core.tokens.CharToken;
+import jmathlib.core.tokens.OperandToken;
+
+/**External function to get a enviroment variable*/
+public class setjmathlibproperty extends ExternalFunction
+{
+ /**Returns an enviroment variable
+ @param operand[0] = the name of the variable
+ @param operand[1] = a default value (optional)
+ @return the enviroment value*/
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
+ {
+ OperandToken result = null;
+
+ if (getNArgIn(operands)!=2)
+ throwMathLibException("setjmathlibproperty: number of arguments != 2");
+
+
+ if ( (!(operands[0] instanceof CharToken)) &&
+ (!(operands[1] instanceof CharToken)) )
+ throwMathLibException("setjmathlibproperty: arguments must be strings");
+
+ String name = operands[0].toString();
+ String prop = operands[1].toString();
+
+ globals.setProperty(name, prop);
+
+
+ return result;
+ }
+}
+
+/*
+@GROUP
+system
+@SYNTAX
+setjmathlibproperty(property name, value)
+@DOC
+Returns the value of the enviromental variable variablename.
+@NOTES
+@EXAMPLES
+GETENV("HOME")= "/home/user"
+@SEE
+getjmathlibproperty, getenv
+*/
+
Deleted: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setlocalproperty.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setlocalproperty.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setlocalproperty.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -1,51 +0,0 @@
-package jmathlib.toolbox.jmathlib.system;
-
-import jmathlib.core.functions.ExternalFunction;
-import jmathlib.core.interpreter.GlobalValues;
-import jmathlib.core.tokens.Token;
-import jmathlib.core.tokens.CharToken;
-import jmathlib.core.tokens.OperandToken;
-
-/**External function to get a enviroment variable*/
-public class setlocalproperty extends ExternalFunction
-{
- /**Returns an enviroment variable
- @param operand[0] = the name of the variable
- @param operand[1] = a default value (optional)
- @return the enviroment value*/
- public OperandToken evaluate(Token[] operands, GlobalValues globals)
- {
- OperandToken result = null;
-
- if (getNArgIn(operands)!=2)
- throwMathLibException("setlocalproperty: number of arguments != 2");
-
-
- if ( (!(operands[0] instanceof CharToken)) &&
- (!(operands[1] instanceof CharToken)) )
- throwMathLibException("setlocalproperty: arguments must be strings");
-
- String name = operands[0].toString();
- String prop = operands[1].toString();
-
- globals.getInterpreter().prefs.setLocalProperty(name, prop);
-
-
- return result;
- }
-}
-
-/*
-@GROUP
-system
-@SYNTAX
-setlocalproperty(property name, value)
-@DOC
-Returns the value of the enviromental variable variablename.
-@NOTES
-@EXAMPLES
-GETENV("HOME")= "/home/user"
-@SEE
-setglobalproperty
-*/
-
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/update.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/update.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/update.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -20,11 +20,11 @@
globals.getInterpreter().displayText("UPDATING JMathLib\n");
// get update site of jmathlib
- String updateSiteS = globals.getInterpreter().prefs.getLocalProperty("update.site.primary");
+ String updateSiteS = globals.getProperty("update.site.primary");
globals.getInterpreter().displayText("update site: "+updateSiteS);
// get local version of jmathlib
- String localVersionS = globals.getInterpreter().prefs.getLocalProperty("jmathlib.version");
+ String localVersionS = globals.getProperty("jmathlib.version");
localVersionS = localVersionS.replaceAll("/", ".");
globals.getInterpreter().displayText("current version: "+localVersionS);
@@ -175,7 +175,7 @@
String propS = s.substring(5).trim();
globals.getInterpreter().displayText("new property: >"+propS+"<");
String[] p = propS.split("=");
- globals.getInterpreter().prefs.setLocalProperty(p[0],p[1]);
+ globals.setProperty(p[0],p[1]);
}
else
{
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/ver.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/ver.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/ver.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -14,19 +14,19 @@
globals.getInterpreter().displayText("Version information for JMathLib");
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.version");
+ s = globals.getProperty("jmathlib.version");
globals.getInterpreter().displayText("version: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.release.date");
+ s = globals.getProperty("jmathlib.release.date");
globals.getInterpreter().displayText("release date: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.release.name");
+ s = globals.getProperty("jmathlib.release.name");
globals.getInterpreter().displayText("release name: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.release.description");
+ s = globals.getProperty("jmathlib.release.description");
globals.getInterpreter().displayText("release description: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.copyright");
+ s = globals.getProperty("jmathlib.copyright");
globals.getInterpreter().displayText(s);
return null;
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/version.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/version.java 2009-01-30 18:59:26 UTC (rev 795)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/version.java 2009-01-30 19:02:16 UTC (rev 796)
@@ -14,19 +14,19 @@
globals.getInterpreter().displayText("Version information for JMathLib");
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.version");
+ s = globals.getProperty("jmathlib.version");
globals.getInterpreter().displayText("version: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.release.date");
+ s = globals.getProperty("jmathlib.release.date");
globals.getInterpreter().displayText("release date: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.release.name");
+ s = globals.getProperty("jmathlib.release.name");
globals.getInterpreter().displayText("release name: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.release.description");
+ s = globals.getProperty("jmathlib.release.description");
globals.getInterpreter().displayText("release description: "+s);
- s = globals.getInterpreter().prefs.getLocalProperty("jmathlib.copyright");
+ s = globals.getProperty("jmathlib.copyright");
globals.getInterpreter().displayText(s);
return null;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 18:59:44
|
Revision: 795
http://mathlib.svn.sourceforge.net/mathlib/?rev=795&view=rev
Author: st_mueller
Date: 2009-01-30 18:59:26 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
Modified Paths:
--------------
JMathLib/trunk/JMathLib.properties
Modified: JMathLib/trunk/JMathLib.properties
===================================================================
--- JMathLib/trunk/JMathLib.properties 2009-01-30 18:22:45 UTC (rev 794)
+++ JMathLib/trunk/JMathLib.properties 2009-01-30 18:59:26 UTC (rev 795)
@@ -3,13 +3,12 @@
#
# (c) st...@he...
-
# current version of JMathLib
-jmathlib.version=0.9.3
-jmathlib.release.date=2009/01/11
-jmathlib.release.name=release V0.9.3
+jmathlib.version=0.9.4
+jmathlib.release.date=2009/01/30
+jmathlib.release.name=release V0.9.4
jmathlib.release.description=mayer release
-jmathlib.copyright=(c) 2007,2008, 2009 Stefan Mueller and others
+jmathlib.copyright=(c) 2007, 2008, 2009 Stefan Mueller and others
# website
jmathlib.website.primary=http://www.jmathlib.de
@@ -25,6 +24,7 @@
update.errors=0
update.message="welcome to the new version of JMathLib"
+
# Messages to the user
jmathlib.messages.urgent=""
jmathlib.messages.immediately=""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 18:22:54
|
Revision: 794
http://mathlib.svn.sourceforge.net/mathlib/?rev=794&view=rev
Author: st_mueller
Date: 2009-01-30 18:22:45 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
Added Paths:
-----------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java (rev 0)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java 2009-01-30 18:22:45 UTC (rev 794)
@@ -0,0 +1,151 @@
+package jmathlib.toolbox.jmathlib.system;
+
+/* This file is part or JMathLib
+
+
+ Author: Stefan Mueller 2002/03/31
+*/
+
+//ToDo: do not include empty directories in the list
+// relative path names
+
+import jmathlib.core.tokens.*;
+import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
+import jmathlib.core.interpreter.*;
+import jmathlib.core.functions.FunctionLoader;
+import jmathlib.core.functions.FileFunctionLoader;
+import jmathlib.core.functions.ExternalFunction;
+import java.util.Vector;
+import java.io.*;
+
+/**An external function for creating a filelist used by the class
+ loader for java applets */
+public class createfunctionslist extends ExternalFunction
+{
+
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
+ {
+
+ Vector pathVector = new Vector();
+
+ // get all search paths from all file loaders
+ for (int i=0;i<globals.getFunctionManager().getFunctionLoaderCount();i++)
+ {
+
+ FunctionLoader loader = globals.getFunctionManager().getFunctionLoader(i);
+
+ if (loader instanceof FileFunctionLoader)
+ {
+ FileFunctionLoader ffl = (FileFunctionLoader)loader;
+
+ for (int pathIdx=0;pathIdx<ffl.getPathCount();pathIdx++)
+ {
+ File path = ffl.getPath(pathIdx).getAbsoluteFile();
+
+ pathVector.add(path.toString());
+ }
+ }
+ }
+
+
+ int size = pathVector.size();
+ String path = "";
+ String line = "";
+
+ ErrorLogger.debugLine("working directory: "+globals.getWorkingDirectory().getAbsolutePath());
+
+ try
+ {
+
+ // create file to store all class-, m-files and images
+ File funcFile = new File(globals.getWorkingDirectory().getAbsoluteFile() +
+ File.separator + "bin" +
+ File.separator + "jmathlib" +
+ File.separator + "webFunctionsList.dat");
+ BufferedWriter outWriter = new BufferedWriter( new FileWriter(funcFile));
+ ErrorLogger.debugLine("funcFile ="+funcFile.toString());
+
+
+ /* The first line of the file is a comment */
+ line = "# created with createFunctionsList.java";
+ outWriter.write(line, 0, line.length());
+ outWriter.newLine();
+ line = "# This is a generated file. DO NOT EDIT!";
+ outWriter.write(line, 0, line.length());
+ outWriter.newLine();
+
+ // search through all serach directories
+ for(int n = 0; n < size; n++)
+ {
+ path = (String)pathVector.elementAt(n);
+ ErrorLogger.debugLine("path func manager = "+path);
+
+ File dir = new File(path);
+ String[] files = dir.list();
+
+ // do not use empty directories
+ if (files != null)
+ {
+ for(int fileNo = 0; (fileNo < files.length); fileNo++)
+ {
+ line = path + "/" + files[fileNo];
+
+ // use unix-style file separator as default
+ line = line.replace('\\', '/');
+
+ // do not put CVS directories and files into functions list
+ if (!line.endsWith("/CVS") &&
+ !line.endsWith("/CVS/Entries") &&
+ !line.endsWith("/CVS/Root") &&
+ !line.endsWith("/CVS/Repository") &&
+ !line.contains(".svn") )
+ {
+ // remove preceding absolute path
+ line = line.substring((globals.getWorkingDirectory().getAbsolutePath()+"/bin/").length());
+
+ ErrorLogger.debugLine("path = "+ line);
+
+ // also remove unwanted directories
+ if (!line.startsWith("jmathlibtests") &&
+ !line.startsWith("jmathlib/tools") )
+ {
+ // write relative path and filename to dat-file
+ outWriter.write(line, 0, line.length());
+ outWriter.newLine();
+ }
+ }
+
+ }
+ }
+ else
+ ErrorLogger.debugLine("directory is empty");
+ }
+ outWriter.close();
+
+ }
+ catch (Exception e)
+ {
+ ErrorLogger.debugLine("createFunctionsList");
+ e.printStackTrace();
+ }
+ return DoubleNumberToken.one;
+
+ } // end evaluate
+}
+
+/*
+@GROUP
+system
+@SYNTAX
+createfunctionslist()
+@DOC
+Creates a file called webFunctionList.dat containing the name
+of all external functions.
+This functions is used when running JMathLib as an applet.
+@NOTES
+@EXAMPLES
+createfunctionslist()
+@SEE
+path, setpath, rmpath
+*/
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-30 18:21:27
|
Revision: 793
http://mathlib.svn.sourceforge.net/mathlib/?rev=793&view=rev
Author: st_mueller
Date: 2009-01-30 18:21:19 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
Removed Paths:
-------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createFunctionsList.java
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
Deleted: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createFunctionsList.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createFunctionsList.java 2009-01-29 20:26:00 UTC (rev 792)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createFunctionsList.java 2009-01-30 18:21:19 UTC (rev 793)
@@ -1,151 +0,0 @@
-package jmathlib.toolbox.jmathlib.system;
-
-/* This file is part or JMathLib
-
-
- Author: Stefan Mueller 2002/03/31
-*/
-
-//ToDo: do not include empty directories in the list
-// relative path names
-
-import jmathlib.core.tokens.*;
-import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
-import jmathlib.core.interpreter.*;
-import jmathlib.core.functions.FunctionLoader;
-import jmathlib.core.functions.FileFunctionLoader;
-import jmathlib.core.functions.ExternalFunction;
-import java.util.Vector;
-import java.io.*;
-
-/**An external function for creating a filelist used by the class
- loader for java applets */
-public class createFunctionsList extends ExternalFunction
-{
-
- public OperandToken evaluate(Token[] operands, GlobalValues globals)
- {
-
- Vector pathVector = new Vector();
-
- // get all search paths from all file loaders
- for (int i=0;i<globals.getFunctionManager().getFunctionLoaderCount();i++)
- {
-
- FunctionLoader loader = globals.getFunctionManager().getFunctionLoader(i);
-
- if (loader instanceof FileFunctionLoader)
- {
- FileFunctionLoader ffl = (FileFunctionLoader)loader;
-
- for (int pathIdx=0;pathIdx<ffl.getPathCount();pathIdx++)
- {
- File path = ffl.getPath(pathIdx).getAbsoluteFile();
-
- pathVector.add(path.toString());
- }
- }
- }
-
-
- int size = pathVector.size();
- String path = "";
- String line = "";
-
- ErrorLogger.debugLine("working directory: "+globals.getWorkingDirectory().getAbsolutePath());
-
- try
- {
-
- // create file to store all class-, m-files and images
- File funcFile = new File(globals.getWorkingDirectory().getAbsoluteFile() +
- File.separator + "bin" +
- File.separator + "jmathlib" +
- File.separator + "webFunctionsList.dat");
- BufferedWriter outWriter = new BufferedWriter( new FileWriter(funcFile));
- ErrorLogger.debugLine("funcFile ="+funcFile.toString());
-
-
- /* The first line of the file is a comment */
- line = "# created with createFunctionsList.java";
- outWriter.write(line, 0, line.length());
- outWriter.newLine();
- line = "# This is a generated file. DO NOT EDIT!";
- outWriter.write(line, 0, line.length());
- outWriter.newLine();
-
- // search through all serach directories
- for(int n = 0; n < size; n++)
- {
- path = (String)pathVector.elementAt(n);
- ErrorLogger.debugLine("path func manager = "+path);
-
- File dir = new File(path);
- String[] files = dir.list();
-
- // do not use empty directories
- if (files != null)
- {
- for(int fileNo = 0; (fileNo < files.length); fileNo++)
- {
- line = path + "/" + files[fileNo];
-
- // use unix-style file separator as default
- line = line.replace('\\', '/');
-
- // do not put CVS directories and files into functions list
- if (!line.endsWith("/CVS") &&
- !line.endsWith("/CVS/Entries") &&
- !line.endsWith("/CVS/Root") &&
- !line.endsWith("/CVS/Repository") &&
- !line.contains(".svn") )
- {
- // remove preceding absolute path
- line = line.substring((globals.getWorkingDirectory().getAbsolutePath()+"/bin/").length());
-
- ErrorLogger.debugLine("path = "+ line);
-
- // also remove unwanted directories
- if (!line.startsWith("jmathlibtests") &&
- !line.startsWith("jmathlib/tools") )
- {
- // write relative path and filename to dat-file
- outWriter.write(line, 0, line.length());
- outWriter.newLine();
- }
- }
-
- }
- }
- else
- ErrorLogger.debugLine("directory is empty");
- }
- outWriter.close();
-
- }
- catch (Exception e)
- {
- ErrorLogger.debugLine("createFunctionsList");
- e.printStackTrace();
- }
- return DoubleNumberToken.one;
-
- } // end evaluate
-}
-
-/*
-@GROUP
-system
-@SYNTAX
-createfunctionslist()
-@DOC
-Creates a file called webFunctionList.dat containing the name
-of all external functions.
-This functions is used when running JMathLib as an applet.
-@NOTES
-@EXAMPLES
-createfunctionslist()
-@SEE
-path, setpath, rmpath
-*/
-
Deleted: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java 2009-01-29 20:26:00 UTC (rev 792)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java 2009-01-30 18:21:19 UTC (rev 793)
@@ -1,151 +0,0 @@
-package jmathlib.toolbox.jmathlib.system;
-
-/* This file is part or JMathLib
-
-
- Author: Stefan Mueller 2002/03/31
-*/
-
-//ToDo: do not include empty directories in the list
-// relative path names
-
-import jmathlib.core.tokens.*;
-import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
-import jmathlib.core.interpreter.*;
-import jmathlib.core.functions.FunctionLoader;
-import jmathlib.core.functions.FileFunctionLoader;
-import jmathlib.core.functions.ExternalFunction;
-import java.util.Vector;
-import java.io.*;
-
-/**An external function for creating a filelist used by the class
- loader for java applets */
-public class createfunctionslist extends ExternalFunction
-{
-
- public OperandToken evaluate(Token[] operands, GlobalValues globals)
- {
-
- Vector pathVector = new Vector();
-
- // get all search paths from all file loaders
- for (int i=0;i<globals.getFunctionManager().getFunctionLoaderCount();i++)
- {
-
- FunctionLoader loader = globals.getFunctionManager().getFunctionLoader(i);
-
- if (loader instanceof FileFunctionLoader)
- {
- FileFunctionLoader ffl = (FileFunctionLoader)loader;
-
- for (int pathIdx=0;pathIdx<ffl.getPathCount();pathIdx++)
- {
- File path = ffl.getPath(pathIdx).getAbsoluteFile();
-
- pathVector.add(path.toString());
- }
- }
- }
-
-
- int size = pathVector.size();
- String path = "";
- String line = "";
-
- ErrorLogger.debugLine("working directory: "+globals.getWorkingDirectory().getAbsolutePath());
-
- try
- {
-
- // create file to store all class-, m-files and images
- File funcFile = new File(globals.getWorkingDirectory().getAbsoluteFile() +
- File.separator + "bin" +
- File.separator + "jmathlib" +
- File.separator + "webFunctionsList.dat");
- BufferedWriter outWriter = new BufferedWriter( new FileWriter(funcFile));
- ErrorLogger.debugLine("funcFile ="+funcFile.toString());
-
-
- /* The first line of the file is a comment */
- line = "# created with createFunctionsList.java";
- outWriter.write(line, 0, line.length());
- outWriter.newLine();
- line = "# This is a generated file. DO NOT EDIT!";
- outWriter.write(line, 0, line.length());
- outWriter.newLine();
-
- // search through all serach directories
- for(int n = 0; n < size; n++)
- {
- path = (String)pathVector.elementAt(n);
- ErrorLogger.debugLine("path func manager = "+path);
-
- File dir = new File(path);
- String[] files = dir.list();
-
- // do not use empty directories
- if (files != null)
- {
- for(int fileNo = 0; (fileNo < files.length); fileNo++)
- {
- line = path + "/" + files[fileNo];
-
- // use unix-style file separator as default
- line = line.replace('\\', '/');
-
- // do not put CVS directories and files into functions list
- if (!line.endsWith("/CVS") &&
- !line.endsWith("/CVS/Entries") &&
- !line.endsWith("/CVS/Root") &&
- !line.endsWith("/CVS/Repository") &&
- !line.contains(".svn") )
- {
- // remove preceding absolute path
- line = line.substring((globals.getWorkingDirectory().getAbsolutePath()+"/bin/").length());
-
- ErrorLogger.debugLine("path = "+ line);
-
- // also remove unwanted directories
- if (!line.startsWith("jmathlibtests") &&
- !line.startsWith("jmathlib/tools") )
- {
- // write relative path and filename to dat-file
- outWriter.write(line, 0, line.length());
- outWriter.newLine();
- }
- }
-
- }
- }
- else
- ErrorLogger.debugLine("directory is empty");
- }
- outWriter.close();
-
- }
- catch (Exception e)
- {
- ErrorLogger.debugLine("createFunctionsList");
- e.printStackTrace();
- }
- return DoubleNumberToken.one;
-
- } // end evaluate
-}
-
-/*
-@GROUP
-system
-@SYNTAX
-createfunctionslist()
-@DOC
-Creates a file called webFunctionList.dat containing the name
-of all external functions.
-This functions is used when running JMathLib as an applet.
-@NOTES
-@EXAMPLES
-createfunctionslist()
-@SEE
-path, setpath, rmpath
-*/
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-29 20:26:03
|
Revision: 792
http://mathlib.svn.sourceforge.net/mathlib/?rev=792&view=rev
Author: st_mueller
Date: 2009-01-29 20:26:00 +0000 (Thu, 29 Jan 2009)
Log Message:
-----------
changed name to lower
Added Paths:
-----------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java (rev 0)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/createfunctionslist.java 2009-01-29 20:26:00 UTC (rev 792)
@@ -0,0 +1,151 @@
+package jmathlib.toolbox.jmathlib.system;
+
+/* This file is part or JMathLib
+
+
+ Author: Stefan Mueller 2002/03/31
+*/
+
+//ToDo: do not include empty directories in the list
+// relative path names
+
+import jmathlib.core.tokens.*;
+import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
+import jmathlib.core.interpreter.*;
+import jmathlib.core.functions.FunctionLoader;
+import jmathlib.core.functions.FileFunctionLoader;
+import jmathlib.core.functions.ExternalFunction;
+import java.util.Vector;
+import java.io.*;
+
+/**An external function for creating a filelist used by the class
+ loader for java applets */
+public class createfunctionslist extends ExternalFunction
+{
+
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
+ {
+
+ Vector pathVector = new Vector();
+
+ // get all search paths from all file loaders
+ for (int i=0;i<globals.getFunctionManager().getFunctionLoaderCount();i++)
+ {
+
+ FunctionLoader loader = globals.getFunctionManager().getFunctionLoader(i);
+
+ if (loader instanceof FileFunctionLoader)
+ {
+ FileFunctionLoader ffl = (FileFunctionLoader)loader;
+
+ for (int pathIdx=0;pathIdx<ffl.getPathCount();pathIdx++)
+ {
+ File path = ffl.getPath(pathIdx).getAbsoluteFile();
+
+ pathVector.add(path.toString());
+ }
+ }
+ }
+
+
+ int size = pathVector.size();
+ String path = "";
+ String line = "";
+
+ ErrorLogger.debugLine("working directory: "+globals.getWorkingDirectory().getAbsolutePath());
+
+ try
+ {
+
+ // create file to store all class-, m-files and images
+ File funcFile = new File(globals.getWorkingDirectory().getAbsoluteFile() +
+ File.separator + "bin" +
+ File.separator + "jmathlib" +
+ File.separator + "webFunctionsList.dat");
+ BufferedWriter outWriter = new BufferedWriter( new FileWriter(funcFile));
+ ErrorLogger.debugLine("funcFile ="+funcFile.toString());
+
+
+ /* The first line of the file is a comment */
+ line = "# created with createFunctionsList.java";
+ outWriter.write(line, 0, line.length());
+ outWriter.newLine();
+ line = "# This is a generated file. DO NOT EDIT!";
+ outWriter.write(line, 0, line.length());
+ outWriter.newLine();
+
+ // search through all serach directories
+ for(int n = 0; n < size; n++)
+ {
+ path = (String)pathVector.elementAt(n);
+ ErrorLogger.debugLine("path func manager = "+path);
+
+ File dir = new File(path);
+ String[] files = dir.list();
+
+ // do not use empty directories
+ if (files != null)
+ {
+ for(int fileNo = 0; (fileNo < files.length); fileNo++)
+ {
+ line = path + "/" + files[fileNo];
+
+ // use unix-style file separator as default
+ line = line.replace('\\', '/');
+
+ // do not put CVS directories and files into functions list
+ if (!line.endsWith("/CVS") &&
+ !line.endsWith("/CVS/Entries") &&
+ !line.endsWith("/CVS/Root") &&
+ !line.endsWith("/CVS/Repository") &&
+ !line.contains(".svn") )
+ {
+ // remove preceding absolute path
+ line = line.substring((globals.getWorkingDirectory().getAbsolutePath()+"/bin/").length());
+
+ ErrorLogger.debugLine("path = "+ line);
+
+ // also remove unwanted directories
+ if (!line.startsWith("jmathlibtests") &&
+ !line.startsWith("jmathlib/tools") )
+ {
+ // write relative path and filename to dat-file
+ outWriter.write(line, 0, line.length());
+ outWriter.newLine();
+ }
+ }
+
+ }
+ }
+ else
+ ErrorLogger.debugLine("directory is empty");
+ }
+ outWriter.close();
+
+ }
+ catch (Exception e)
+ {
+ ErrorLogger.debugLine("createFunctionsList");
+ e.printStackTrace();
+ }
+ return DoubleNumberToken.one;
+
+ } // end evaluate
+}
+
+/*
+@GROUP
+system
+@SYNTAX
+createfunctionslist()
+@DOC
+Creates a file called webFunctionList.dat containing the name
+of all external functions.
+This functions is used when running JMathLib as an applet.
+@NOTES
+@EXAMPLES
+createfunctionslist()
+@SEE
+path, setpath, rmpath
+*/
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-29 20:02:03
|
Revision: 791
http://mathlib.svn.sourceforge.net/mathlib/?rev=791&view=rev
Author: st_mueller
Date: 2009-01-29 20:01:58 +0000 (Thu, 29 Jan 2009)
Log Message:
-----------
release of JMathLib 0.9.4
Modified Paths:
--------------
JMathLib/trunk/doc/src/doc.xml
Modified: JMathLib/trunk/doc/src/doc.xml
===================================================================
--- JMathLib/trunk/doc/src/doc.xml 2009-01-29 20:00:49 UTC (rev 790)
+++ JMathLib/trunk/doc/src/doc.xml 2009-01-29 20:01:58 UTC (rev 791)
@@ -74,11 +74,11 @@
</para>
</abstract>
-<pubdate>January 11, 2009</pubdate>
+<pubdate>January 29, 2009</pubdate>
<releaseinfo><para><emphasis>
-This release is connected to JMathLib in Version 0.9.3 and following versions
+This release is connected to JMathLib in Version 0.9.4 and following versions
</emphasis></para></releaseinfo>
</bookinfo>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-29 20:00:56
|
Revision: 790
http://mathlib.svn.sourceforge.net/mathlib/?rev=790&view=rev
Author: st_mueller
Date: 2009-01-29 20:00:49 +0000 (Thu, 29 Jan 2009)
Log Message:
-----------
Modified Paths:
--------------
JMathLib/trunk/JMathLib.local.properties
Modified: JMathLib/trunk/JMathLib.local.properties
===================================================================
--- JMathLib/trunk/JMathLib.local.properties 2009-01-26 20:11:48 UTC (rev 789)
+++ JMathLib/trunk/JMathLib.local.properties 2009-01-29 20:00:49 UTC (rev 790)
@@ -1,10 +1,10 @@
#JMathLib local property file
#Sat Nov 30 20:00:00 CEST 2008
update.auto=yes
-jmathlib.release.date=2009/01/11
+jmathlib.release.date=2009/01/29
update.errors=0
update.site.primary=http://www.jmathlib.de/checkForUpdates/
update.site.backup=http://mathlib.sourceforge.net/checkForUpdates/
update.date.next=00.00.00
update.intervall=1
-update.date.last=2009/01/11
+update.date.last=2009/01/29
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-26 20:11:57
|
Revision: 789
http://mathlib.svn.sourceforge.net/mathlib/?rev=789&view=rev
Author: st_mueller
Date: 2009-01-26 20:11:48 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
added more comments
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/interpreter/Variable.java
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/Variable.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/Variable.java 2009-01-26 20:04:13 UTC (rev 788)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/Variable.java 2009-01-26 20:11:48 UTC (rev 789)
@@ -23,7 +23,8 @@
}
/**constructor containing a variable name
- * @param _name*/
+ * @param _name
+ */
public Variable(String _name)
{
super();
@@ -33,25 +34,13 @@
/**constructor containing the variables name and data
* @param _name
- * @param _data*/
+ * @param _data
+ */
public Variable(String _name, OperandToken _data)
{
super();
name = _name;
data = _data;
-
- //if(_data != null)
- //{
- // OperandToken subTree = null;
- // //if the item is an Expression node then just set the data value
- // //without creating a new node
- // if(_data instanceof Expression)
- // subTree = ((Expression)_data);
- // else if(_data instanceof OperandToken)
- // subTree = ((OperandToken)_data);
- //
- // data = subTree;
- //}
}
/**Assign a new value to the variable
@@ -84,19 +73,18 @@
// equal = super.equals(_data);
if(_data instanceof Variable)
- equal = this.name.equalsIgnoreCase(((Variable)_data).getName());
+ equal = this.name.equals(((Variable)_data).getName());
else
equal = super.equals(_data);
return equal;
}
- /**Converts the variable to a string.
+ /**Converts the variable into a string.
* @return
*/
public String toString()
{
- //Errors.throwMathLibException("Variable");
if(data == null)
return null;
else
@@ -109,7 +97,9 @@
return toString();
}
- /**Returns the variables name*/
+ /**Returns the variables name
+ * @return
+ */
public String getName()
{
return name;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-26 20:04:15
|
Revision: 788
http://mathlib.svn.sourceforge.net/mathlib/?rev=788&view=rev
Author: st_mueller
Date: 2009-01-26 20:04:13 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
added more comments
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-26 20:00:09 UTC (rev 787)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-26 20:04:13 UTC (rev 788)
@@ -1,3 +1,12 @@
+/*
+ * This file is part or JMathLib
+ *
+ * Check it out at http://www.jmathlib.de
+ *
+ * Author:
+ * (c) 2002-2009
+ */
+
package jmathlib.core.interpreter;
import java.io.*;
@@ -26,9 +35,6 @@
/**Object to control function usage*/
private jmathlib.core.functions.FunctionManager functionManager;
- /**Class Loader for loading classes for handling casting*/
- //static transient private MathLib.Casts.CastClassLoader castClassLoader;
-
/**A pointer to the interpreter itself*/
private Interpreter interpreter;
@@ -38,28 +44,24 @@
/**Object to control plugins */
private jmathlib.plugins.PluginsManager pluginsManager;
- /**sets whether to write debug lines to console and log files*/
- //private boolean debug = true;
-
/**stores the number format for displaying the number*/
- public /*static transient*/ NumberFormat numFormat = new DecimalFormat("0.0000", new DecimalFormatSymbols(Locale.ENGLISH));
+ public NumberFormat numFormat = new DecimalFormat("0.0000", new DecimalFormatSymbols(Locale.ENGLISH));
/**Initialises the global values
- @param _interpreter = the Interpreter object
- @param _runningStandalone = true if this was run from an application*/
+ * @param _interpreter = the Interpreter object
+ * @param _runningStandalone = true if this was run from an application
+ */
public GlobalValues(Interpreter _interpreter, boolean _runningStandalone, Applet applet)
{
+ // the list of contexts
contextList = new ContextList();
+ // the function manager for loading m-files class-files
functionManager = new jmathlib.core.functions.FunctionManager(_runningStandalone, applet);
+ // the graphics manager for plotting functions
graphicsManager = new jmathlib.core.graphics.GraphicsManager();
- //if(_runningStandalone)
- // castClassLoader = new MathLib.Casts.CastClassLoader("." + File.separator, flags);
- //else
- // castClassLoader = null;
-
//set up a pointer to the interpreter object
interpreter = _interpreter;
@@ -136,8 +138,8 @@
return contextList;
}
- /**@return the interpreter object
- * @return
+ /**returns the interpreter object
+ * @return pointer to Interpreter
*/
public Interpreter getInterpreter()
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-26 20:00:13
|
Revision: 787
http://mathlib.svn.sourceforge.net/mathlib/?rev=787&view=rev
Author: st_mueller
Date: 2009-01-26 20:00:09 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
Modified Paths:
--------------
JMathLib/trunk/ChangeLog.txt
Modified: JMathLib/trunk/ChangeLog.txt
===================================================================
--- JMathLib/trunk/ChangeLog.txt 2009-01-26 19:52:50 UTC (rev 786)
+++ JMathLib/trunk/ChangeLog.txt 2009-01-26 20:00:09 UTC (rev 787)
@@ -1,11 +1,5 @@
--- Mnemonics
---
--- + Added (or created) file or directory
--- - Removed file or directory
--- * Modified file
--- ! Bug found
--- # Bug fixed
+ ChangeLog of JMathLib
---- Functional Changes: version 0.9.2 -> 0.x.x ------------------------------
New functions:
@@ -13,59 +7,64 @@
Updated functions:
---- HISTORY ------------------------------------------------------------------
-2009/01/xx
-stefan *
+2009/01/xx stefan:
-2009/01/09
-stefan * changed the parser, now parsing of cd somedirectory is possible.
- Also cd("somedirectory") still works.
+2009/01/26 stefan: changed MathLibException into JMathLibException
+
+2009/01/25 stefan: JMathLib has not been thread save for more than one
+ instance of Interpreter.class. I removed the static
+ variables in GlobalValues and added a GlobalVaues-pointer
+ to all evaluate(....) methods.
+
+2009/01/09 stefan: Changed the parser, now parsing of cd somedirectory
+ is possible. Also cd("somedirectory") still works.
-2009/01/04
-stefan + added the euler number to VariableToken.java as predefined variable
-stefan + pi.int documentation for pi
-stefan + e.int documentation for euler number
+2009/01/04 stefan: added the euler number to VariableToken.java as predefined
+ variable
+2009/01/04 stefan: pi.int documentation for pi
+2009/01/04 stefan: e.int documentation for euler number
-2008/12/31
-stefan + toolbox/jmathlib/system/quit.java
-stefan + toolbox/jmathlib/system/exit.m
-stefan + toolbox/jmathlib/io/pwd.java
+2008/12/31 stefan: added toolbox/jmathlib/system/quit.java
+2008/12/31 stefan: added toolbox/jmathlib/system/exit.m
+2008/12/31 stefan: added toolbox/jmathlib/io/pwd.java
-2008/12/30
-stefan + jmathlib/ui/text/TextUI.java first version of textual user interface.
+2008/12/30 stefan: added jmathlib/ui/text/TextUI.java first version of textual
+ user interface.
-2008/12/28
-stefan * jmathlib/ui/applet/JMathLibGUI.java code cleanup and bugfixing
+2008/12/28 stefan: jmathlib/ui/applet/JMathLibGUI.java code cleanup and bugfixing
-2008/12/27
-stefan + moved code from MFileWebLoader.java to WebFunctionLoader.java
-stefan - removed MFileWebLoader.java
-stefan + plusplus.int describing the ++ command
-stefan + minusminus.int describing the -- command
-stefan # DoubleNumberToken.java support for [1,0,3].^0 = [1,1,1]
- and 0.^[1,0,2] = [0,1,0]
+2008/12/27 stefan: moved code from MFileWebLoader.java to WebFunctionLoader.java
+2008/12/27 stefan: removed MFileWebLoader.java
+2008/12/27 stefan: added plusplus.int describing the ++ command
+2008/12/27 stefan: added minusminus.int describing the -- command
+2008/12/27 stefan: bugfix for DoubleNumberToken.java support for
+ [1,0,3].^0 = [1,1,1] and 0.^[1,0,2] = [0,1,0]
-2008/12/26
-stefan + toolbox/jmathlib/system/format.java for formatting numbers
-stefan * GlobalValues.java RootObject.java for formatting numbers
+2008/12/26 stefan: added toolbox/jmathlib/system/format.java for formatting numbers
+2008/12/26 stefan: changed GlobalValues.java RootObject.java for formatting numbers
-2008/12/15
-stefan + jmathlib.sh
+2008/12/15 stefan: added jmathlib.sh for starting JMathLib on unix
-2008/12/xx
-stefan * tearDown() added this method to all test cases in order to save
- resources and memory during test case evaluation
+2008/12/xx stefan: tearDown() added this method to all test cases in order
+ to save resources and memory during test case evaluation
-2008/12/06
-stefan + jmathlib/system/setlocalproperty.java for setting local properties
-stefan + jmathlib/system/getlocalproperty.java for getting local properties
-stefan + jmathlib/system/setglobalproperty.java for setting global properties
-stefan + jmathlib/system/getglobalproperty.java for getting global properties
+2008/12/06 stefan: added jmathlib/system/setlocalproperty.java for setting local properties
+2008/12/06 stefan: added jmathlib/system/getlocalproperty.java for getting local properties
+2008/12/06 stefan: added jmathlib/system/setglobalproperty.java for setting global properties
+2008/12/06 stefan: added jmathlib/system/getglobalproperty.java for getting global properties
-2008/11/30
-stefan # update.java wrong comment
+2008/11/30 stefan: bugfix update.java wrong comment
---- Functional Changes: version 0.9.0 -> 0.9.2 ------------------------------
+-- Mnemonics
+--
+-- + Added (or created) file or directory
+-- - Removed file or directory
+-- * Modified file
+-- ! Bug found
+-- # Bug fixed
+
2008/11/30
stefan * generation of release version 0.9.2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-26 19:52:52
|
Revision: 786
http://mathlib.svn.sourceforge.net/mathlib/?rev=786&view=rev
Author: st_mueller
Date: 2009-01-26 19:52:50 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
renamed MathLibException into JMathLibException
Removed Paths:
-------------
JMathLib/trunk/src/jmathlib/core/interpreter/MathLibException.java
Deleted: JMathLib/trunk/src/jmathlib/core/interpreter/MathLibException.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/MathLibException.java 2009-01-26 19:52:31 UTC (rev 785)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/MathLibException.java 2009-01-26 19:52:50 UTC (rev 786)
@@ -1,20 +0,0 @@
-package jmathlib.core.interpreter;
-
-/**MathLib specific exception */
-public class MathLibException extends ArithmeticException
-{
- /**Create a new exception object*/
- public MathLibException()
- {
-
- }
-
- /**Set the message text
- @param text = the text to display*/
- public MathLibException(String text)
- {
- super(text);
- }
-
-
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|