Skip to content

Commit ac05341

Browse files
committed
version bump
1 parent 8591e00 commit ac05341

File tree

2 files changed

+30
-186
lines changed

2 files changed

+30
-186
lines changed

port-prod.xml

Lines changed: 15 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -242,37 +242,47 @@ Defines a class used to handle source control hooks after Port execution.</Descr
242242
</Method>
243243

244244
<Method name="GetInputCharset">
245+
<Description>
246+
Get the charset to be used when saving a document that has the provided extension.
247+
Defaults to "UTF8".</Description>
245248
<ClassMethod>1</ClassMethod>
246249
<FormalSpec>extension:%String</FormalSpec>
247250
<ReturnType>%String</ReturnType>
248-
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.input", $$$ucase(extension)), "UTF-8")
251+
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.input", $$$ucase(extension)), "UTF8")
249252
]]></Implementation>
250253
</Method>
251254

252255
<Method name="GetOutputCharset">
256+
<Description>
257+
Get the charset to be used when retrieving a document that has the provided extension.
258+
Defaults to "UTF8".</Description>
253259
<ClassMethod>1</ClassMethod>
254260
<FormalSpec>extension:%String</FormalSpec>
255261
<ReturnType>%String</ReturnType>
256-
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.output", $$$ucase(extension)), "UTF-8")
262+
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.output", $$$ucase(extension)), "UTF8")
257263
]]></Implementation>
258264
</Method>
259265

260266
<Method name="SetInputCharset">
267+
<Description>
268+
Set the character set to be used when saving a document with the provided extension.</Description>
261269
<ClassMethod>1</ClassMethod>
262270
<FormalSpec>extension:%String,charset:%String</FormalSpec>
263271
<ReturnType>%Status</ReturnType>
264272
<Implementation><![CDATA[
265-
set ^Port.Configuration("source.charset.output", extension) = charset
273+
set ^Port.Configuration("source.charset.input", $$$ucase(extension)) = charset
266274
return $$$OK
267275
]]></Implementation>
268276
</Method>
269277

270278
<Method name="SetOutputCharset">
279+
<Description>
280+
Set the character set to be used when retrieving a document with the provided extension.</Description>
271281
<ClassMethod>1</ClassMethod>
272282
<FormalSpec>extension:%String,charset:%String</FormalSpec>
273283
<ReturnType>%Status</ReturnType>
274284
<Implementation><![CDATA[
275-
set ^Port.Configuration("source.charset.input", extension) = charset
285+
set ^Port.Configuration("source.charset.output", $$$ucase(extension)) = charset
276286
return $$$OK
277287
]]></Implementation>
278288
</Method>
@@ -284,94 +294,6 @@ Defines a class used to handle source control hooks after Port execution.</Descr
284294
]]></Implementation>
285295
</Method>
286296

287-
<Method name="SetRoutineInputTranslateTable">
288-
<Description>
289-
Defines the encoding used to save the routine items, this includes class items. Pass RAW to preserve the content as-is.</Description>
290-
<ClassMethod>1</ClassMethod>
291-
<FormalSpec>charset:%String</FormalSpec>
292-
<ReturnType>%Status</ReturnType>
293-
<Implementation><![CDATA[
294-
set ^Port.Configuration("io.routine.in") = charset
295-
return $$$OK
296-
]]></Implementation>
297-
</Method>
298-
299-
<Method name="SetRoutineOutputTranslateTable">
300-
<Description>
301-
Defines the encoding used to save the exported files originated from routines, this includes class items. Pass RAW to preserve the content as-is.</Description>
302-
<ClassMethod>1</ClassMethod>
303-
<FormalSpec>charset:%String</FormalSpec>
304-
<ReturnType>%Status</ReturnType>
305-
<Implementation><![CDATA[
306-
set ^Port.Configuration("io.routine.out") = charset
307-
return $$$OK
308-
]]></Implementation>
309-
</Method>
310-
311-
<Method name="SetPublicFileInputTranslateTable">
312-
<Description>
313-
Defines the encoding used to save CSP items. Pass RAW to preserve the content as-is.</Description>
314-
<ClassMethod>1</ClassMethod>
315-
<FormalSpec>charset:%String</FormalSpec>
316-
<ReturnType>%Status</ReturnType>
317-
<Implementation><![CDATA[
318-
set ^Port.Configuration("io.public.in") = charset
319-
return $$$OK
320-
]]></Implementation>
321-
</Method>
322-
323-
<Method name="SetPublicFileOutputTranslateTable">
324-
<Description>
325-
Defines the encoding used to save public files originated from CSP items. Pass RAW to preserve the content as-is.</Description>
326-
<ClassMethod>1</ClassMethod>
327-
<FormalSpec>charset:%String</FormalSpec>
328-
<ReturnType>%Status</ReturnType>
329-
<Implementation><![CDATA[
330-
set ^Port.Configuration("io.public.out") = charset
331-
return $$$OK
332-
]]></Implementation>
333-
</Method>
334-
335-
<Method name="GetRoutineInputTranslateTable">
336-
<Description>
337-
Retrieves the current configured routine translate table for inputs. Defaults to UTF-8.</Description>
338-
<ClassMethod>1</ClassMethod>
339-
<FormalSpec>charset:%String</FormalSpec>
340-
<ReturnType>%Status</ReturnType>
341-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.routine.in"), "UTF8")
342-
]]></Implementation>
343-
</Method>
344-
345-
<Method name="GetRoutineOutputTranslateTable">
346-
<Description>
347-
Retrieves the current configured routine translate table for outputs. Defaults to UTF-8.</Description>
348-
<ClassMethod>1</ClassMethod>
349-
<FormalSpec>charset:%String</FormalSpec>
350-
<ReturnType>%Status</ReturnType>
351-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.routine.out"), "UTF8")
352-
]]></Implementation>
353-
</Method>
354-
355-
<Method name="GetPublicFileInputTranslateTable">
356-
<Description>
357-
Retrieves the current configured routine translate table for outputs. Defaults to UTF-8.</Description>
358-
<ClassMethod>1</ClassMethod>
359-
<FormalSpec>charset:%String</FormalSpec>
360-
<ReturnType>%Status</ReturnType>
361-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.public.in"), "UTF8")
362-
]]></Implementation>
363-
</Method>
364-
365-
<Method name="GetPublicFileOutputTranslateTable">
366-
<Description>
367-
Retrieves the current configured public file translate table for outputs. Defaults to UTF-8.</Description>
368-
<ClassMethod>1</ClassMethod>
369-
<FormalSpec>charset:%String</FormalSpec>
370-
<ReturnType>%Status</ReturnType>
371-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.public.out"), "UTF8")
372-
]]></Implementation>
373-
</Method>
374-
375297
<Method name="SetTestFormat">
376298
<Description>
377299
Defines which format the Port should for running unit test. When "XML" is selected, Port will export test classes as xml.</Description>
@@ -3604,7 +3526,7 @@ Called after an item is deleted.</Description>
36043526
set recursive = "norecursive"
36053527
}
36063528
3607-
set sc = ..RunTest(target_$case(targetSpec, "": "", : ":"_targetSpec), "/"_recursive_"/run/noload/nodelete")
3529+
set sc = ..RunTest(target, "/"_recursive_"/run/noload/nodelete/"_targetSpec)
36083530
set ^||Port.Project = activeProject
36093531
return sc
36103532
]]></Implementation>

port.xml

Lines changed: 15 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -242,37 +242,47 @@ Defines a class used to handle source control hooks after Port execution.</Descr
242242
</Method>
243243

244244
<Method name="GetInputCharset">
245+
<Description>
246+
Get the charset to be used when saving a document that has the provided extension.
247+
Defaults to "UTF8".</Description>
245248
<ClassMethod>1</ClassMethod>
246249
<FormalSpec>extension:%String</FormalSpec>
247250
<ReturnType>%String</ReturnType>
248-
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.input", $$$ucase(extension)), "UTF-8")
251+
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.input", $$$ucase(extension)), "UTF8")
249252
]]></Implementation>
250253
</Method>
251254

252255
<Method name="GetOutputCharset">
256+
<Description>
257+
Get the charset to be used when retrieving a document that has the provided extension.
258+
Defaults to "UTF8".</Description>
253259
<ClassMethod>1</ClassMethod>
254260
<FormalSpec>extension:%String</FormalSpec>
255261
<ReturnType>%String</ReturnType>
256-
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.output", $$$ucase(extension)), "UTF-8")
262+
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.output", $$$ucase(extension)), "UTF8")
257263
]]></Implementation>
258264
</Method>
259265

260266
<Method name="SetInputCharset">
267+
<Description>
268+
Set the character set to be used when saving a document with the provided extension.</Description>
261269
<ClassMethod>1</ClassMethod>
262270
<FormalSpec>extension:%String,charset:%String</FormalSpec>
263271
<ReturnType>%Status</ReturnType>
264272
<Implementation><![CDATA[
265-
set ^Port.Configuration("source.charset.output", extension) = charset
273+
set ^Port.Configuration("source.charset.input", $$$ucase(extension)) = charset
266274
return $$$OK
267275
]]></Implementation>
268276
</Method>
269277

270278
<Method name="SetOutputCharset">
279+
<Description>
280+
Set the character set to be used when retrieving a document with the provided extension.</Description>
271281
<ClassMethod>1</ClassMethod>
272282
<FormalSpec>extension:%String,charset:%String</FormalSpec>
273283
<ReturnType>%Status</ReturnType>
274284
<Implementation><![CDATA[
275-
set ^Port.Configuration("source.charset.input", extension) = charset
285+
set ^Port.Configuration("source.charset.output", $$$ucase(extension)) = charset
276286
return $$$OK
277287
]]></Implementation>
278288
</Method>
@@ -284,94 +294,6 @@ Defines a class used to handle source control hooks after Port execution.</Descr
284294
]]></Implementation>
285295
</Method>
286296

287-
<Method name="SetRoutineInputTranslateTable">
288-
<Description>
289-
Defines the encoding used to save the routine items, this includes class items. Pass RAW to preserve the content as-is.</Description>
290-
<ClassMethod>1</ClassMethod>
291-
<FormalSpec>charset:%String</FormalSpec>
292-
<ReturnType>%Status</ReturnType>
293-
<Implementation><![CDATA[
294-
set ^Port.Configuration("io.routine.in") = charset
295-
return $$$OK
296-
]]></Implementation>
297-
</Method>
298-
299-
<Method name="SetRoutineOutputTranslateTable">
300-
<Description>
301-
Defines the encoding used to save the exported files originated from routines, this includes class items. Pass RAW to preserve the content as-is.</Description>
302-
<ClassMethod>1</ClassMethod>
303-
<FormalSpec>charset:%String</FormalSpec>
304-
<ReturnType>%Status</ReturnType>
305-
<Implementation><![CDATA[
306-
set ^Port.Configuration("io.routine.out") = charset
307-
return $$$OK
308-
]]></Implementation>
309-
</Method>
310-
311-
<Method name="SetPublicFileInputTranslateTable">
312-
<Description>
313-
Defines the encoding used to save CSP items. Pass RAW to preserve the content as-is.</Description>
314-
<ClassMethod>1</ClassMethod>
315-
<FormalSpec>charset:%String</FormalSpec>
316-
<ReturnType>%Status</ReturnType>
317-
<Implementation><![CDATA[
318-
set ^Port.Configuration("io.public.in") = charset
319-
return $$$OK
320-
]]></Implementation>
321-
</Method>
322-
323-
<Method name="SetPublicFileOutputTranslateTable">
324-
<Description>
325-
Defines the encoding used to save public files originated from CSP items. Pass RAW to preserve the content as-is.</Description>
326-
<ClassMethod>1</ClassMethod>
327-
<FormalSpec>charset:%String</FormalSpec>
328-
<ReturnType>%Status</ReturnType>
329-
<Implementation><![CDATA[
330-
set ^Port.Configuration("io.public.out") = charset
331-
return $$$OK
332-
]]></Implementation>
333-
</Method>
334-
335-
<Method name="GetRoutineInputTranslateTable">
336-
<Description>
337-
Retrieves the current configured routine translate table for inputs. Defaults to UTF-8.</Description>
338-
<ClassMethod>1</ClassMethod>
339-
<FormalSpec>charset:%String</FormalSpec>
340-
<ReturnType>%Status</ReturnType>
341-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.routine.in"), "UTF8")
342-
]]></Implementation>
343-
</Method>
344-
345-
<Method name="GetRoutineOutputTranslateTable">
346-
<Description>
347-
Retrieves the current configured routine translate table for outputs. Defaults to UTF-8.</Description>
348-
<ClassMethod>1</ClassMethod>
349-
<FormalSpec>charset:%String</FormalSpec>
350-
<ReturnType>%Status</ReturnType>
351-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.routine.out"), "UTF8")
352-
]]></Implementation>
353-
</Method>
354-
355-
<Method name="GetPublicFileInputTranslateTable">
356-
<Description>
357-
Retrieves the current configured routine translate table for outputs. Defaults to UTF-8.</Description>
358-
<ClassMethod>1</ClassMethod>
359-
<FormalSpec>charset:%String</FormalSpec>
360-
<ReturnType>%Status</ReturnType>
361-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.public.in"), "UTF8")
362-
]]></Implementation>
363-
</Method>
364-
365-
<Method name="GetPublicFileOutputTranslateTable">
366-
<Description>
367-
Retrieves the current configured public file translate table for outputs. Defaults to UTF-8.</Description>
368-
<ClassMethod>1</ClassMethod>
369-
<FormalSpec>charset:%String</FormalSpec>
370-
<ReturnType>%Status</ReturnType>
371-
<Implementation><![CDATA[ return $get(^Port.Configuration("io.public.out"), "UTF8")
372-
]]></Implementation>
373-
</Method>
374-
375297
<Method name="SetTestFormat">
376298
<Description>
377299
Defines which format the Port should for running unit test. When "XML" is selected, Port will export test classes as xml.</Description>
@@ -3604,7 +3526,7 @@ Called after an item is deleted.</Description>
36043526
set recursive = "norecursive"
36053527
}
36063528
3607-
set sc = ..RunTest(target_$case(targetSpec, "": "", : ":"_targetSpec), "/"_recursive_"/run/noload/nodelete")
3529+
set sc = ..RunTest(target, "/"_recursive_"/run/noload/nodelete/"_targetSpec)
36083530
set ^||Port.Project = activeProject
36093531
return sc
36103532
]]></Implementation>

0 commit comments

Comments
 (0)