You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2004/06/22 01:41:36 UTC
cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/save ScriptWrapperConverter.java
sebb 2004/06/21 16:41:36
Modified: src/core/org/apache/jmeter/save ScriptWrapperConverter.java
Log:
Add ASFL V2; added properties version to script header
Revision Changes Path
1.2 +20 -5 jakarta-jmeter/src/core/org/apache/jmeter/save/ScriptWrapperConverter.java
Index: ScriptWrapperConverter.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/save/ScriptWrapperConverter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ScriptWrapperConverter.java 20 Jun 2004 00:32:52 -0000 1.1
+++ ScriptWrapperConverter.java 21 Jun 2004 23:41:36 -0000 1.2
@@ -1,9 +1,20 @@
/*
- * Created on Jun 19, 2004
+ * Copyright 2004 The Apache Software Foundation.
*
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+*/
+
package org.apache.jmeter.save;
import org.apache.jorphan.collections.HashTree;
@@ -23,6 +34,9 @@
*/
class ScriptWrapperConverter implements Converter
{
+ /** Returns the converter version; used to check for possible incompatibilities */
+ public static String getVersion(){ return "$Revision$";}
+
ClassMapper classMapper;
ScriptWrapperConverter(ClassMapper classMapper)
@@ -45,7 +59,8 @@
MarshallingContext context)
{
ScriptWrapper wrap = (ScriptWrapper)arg0;
- writer.addAttribute("version",wrap.version);
+ writer.addAttribute("version",SaveService.version);
+ writer.addAttribute("properties",SaveService.propertiesVersion);
writer.startNode(classMapper.lookupName(wrap.testPlan.getClass()));
context.convertAnother(wrap.testPlan);
writer.endNode();
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org