clean up ;code template

本文详细介绍了Eclipse中代码清理配置文件的具体设置项及其含义,包括代码格式化、注释模板、代码优化等方面的内容,有助于提升代码质量和开发效率。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="2">
<profile kind="CleanUpProfile" name="Eclipse [mediatek.erp]" version="2">
<setting id="cleanup.add_missing_nls_tags" value="false"/>
<setting id="cleanup.format_source_code" value="true"/>
<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="true"/>
<setting id="cleanup.add_missing_override_annotations" value="true"/>
<setting id="cleanup.remove_unused_private_types" value="true"/>
<setting id="cleanup.remove_unused_private_fields" value="true"/>
<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/>
<setting id="cleanup.never_use_blocks" value="false"/>
<setting id="cleanup.make_local_variable_final" value="false"/>
<setting id="cleanup.add_missing_deprecated_annotations" value="true"/>
<setting id="cleanup.remove_unused_private_methods" value="true"/>
<setting id="cleanup.convert_to_enhanced_for_loop" value="true"/>
<setting id="cleanup.remove_unnecessary_nls_tags" value="false"/>
<setting id="cleanup.remove_unused_imports" value="true"/>
<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/>
<setting id="cleanup.make_private_fields_final" value="false"/>
<setting id="cleanup.sort_members" value="false"/>
<setting id="cleanup.add_generated_serial_version_id" value="false"/>
<setting id="cleanup.remove_unused_local_variables" value="false"/>
<setting id="cleanup.organize_imports" value="true"/>
<setting id="cleanup.remove_unused_private_members" value="false"/>
<setting id="cleanup.remove_trailing_whitespaces" value="true"/>
<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/>
<setting id="cleanup.sort_members_all" value="false"/>
<setting id="cleanup.remove_unnecessary_casts" value="true"/>
<setting id="cleanup.make_parameters_final" value="false"/>
<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/>
<setting id="cleanup.use_this_for_non_static_field_access" value="true"/>
<setting id="cleanup.remove_private_constructors" value="true"/>
<setting id="cleanup.use_blocks" value="true"/>
<setting id="cleanup.add_missing_annotations" value="true"/>
<setting id="cleanup.always_use_this_for_non_static_method_access" value="true"/>
<setting id="cleanup.use_parentheses_in_expressions" value="true"/>
<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/>
<setting id="cleanup.always_use_this_for_non_static_field_access" value="true"/>
<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="false"/>
<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="true"/>
<setting id="cleanup.add_default_serial_version_id" value="true"/>
<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="false"/>
<setting id="cleanup.use_this_for_non_static_method_access" value="true"/>
<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/>
<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/>
<setting id="cleanup.add_serial_version_id" value="true"/>
<setting id="cleanup.make_variable_declarations_final" value="false"/>
<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="true"/>
<setting id="cleanup.always_use_blocks" value="true"/>
</profile>
</profiles>

 

 

code template

<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment">/* (non-Javadoc)
 * ${see_to_overridden}
 */</template><template autoinsert="true" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">/**
 * ${tags}
 */</template><template autoinsert="true" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">/**
 * @author ${user}
 *
 * ${tags}
 */</template><template autoinsert="true" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">/**
 * ${tags}
 * ${see_to_target}
 */</template><template autoinsert="true" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">/**
 * ${tags}
 */</template><template autoinsert="true" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">/**
 * 
 */</template><template autoinsert="true" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment">/**
 * 
 */</template><template autoinsert="true" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">/**
 * @param ${param} the ${bare_field_name} to set
 */</template><template autoinsert="true" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">/**
 * @return the ${bare_field_name}
 */</template></templates>

 

PS C:\Users\曾\Desktop\guigu-oa\guigu-oa-admin\vue-admin-template-master> npm cache clean --force >> npm warn using --force Recommended protections disabled. PS C:\Users\曾\Desktop\guigu-oa\guigu-oa-admin\vue-admin-template-master> npm install npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: '@achrinza/node-ipc@9.2.2', npm warn EBADENGINE required: { node: '8 || 10 || 12 || 14 || 16 || 17' }, npm warn EBADENGINE current: { node: 'v24.11.0', npm: '11.6.1' } npm warn EBADENGINE } npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. npm warn deprecated npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated har-validator@5.1.5: this library is no longer supported npm warn deprecated copy-concurrently@1.0.5: This package is no longer supported. npm warn deprecated fs-write-stream-atomic@1.0.10: This package is no longer supported. npm warn deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm warn deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm warn deprecated domexception@1.0.1: Use your platform's native DOMException instead npm warn deprecated left-pad@1.3.0: use String.prototype.padStart() npm warn deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated move-concurrently@1.0.1: This package is no longer supported. npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated figgy-pudding@3.5.2: This module is no longer supported. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog npm warn deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm warn deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm warn deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm warn deprecated webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' npm warn deprecated eslint-loader@2.2.1: This loader has been deprecated. Please use eslint-webpack-plugin npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm warn deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported npm warn deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. npm warn deprecated axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 npm warn deprecated svgo@1.2.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported npm warn deprecated vue@2.6.10: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details. npm warn deprecated eslint@6.7.2: This version is no longer supported. Please see https://eslint.org/version-support for other options. npm warn deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\Users\\曾\\Desktop\\guigu-oa\\guigu-oa-admin\\vue-admin-template-master\\node_modules', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\曾\Desktop\guigu-oa\guigu-oa-admin\vue-admin-template-master\node_modules\browser-resolve\node_modules\resolve\test\resolver\biz\node_modules\tiv'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\曾\\Desktop\\guigu-oa\\guigu-oa-admin\\vue-admin-template-master\\node_modules\\browser-resolve\\node_modules\\resolve\\test\\resolver\\biz\\node_modules\\tiv' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\Users\\曾\\Desktop\\guigu-oa\\guigu-oa-admin\\vue-admin-template-master\\node_modules\\browser-resolve', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\曾\Desktop\guigu-oa\guigu-oa-admin\vue-admin-template-master\node_modules\browser-resolve\node_modules\resolve\test\pathfilter\deep_ref\node_modules'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\曾\\Desktop\\guigu-oa\\guigu-oa-admin\\vue-admin-template-master\\node_modules\\browser-resolve\\node_modules\\resolve\\test\\pathfilter\\deep_ref\\node_modules' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path C:\Users\曾\Desktop\guigu-oa\guigu-oa-admin\vue-admin-template-master\node_modules\deasync npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./build.js npm error (node:27708) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated. npm error (Use `node --trace-deprecation ...` to show where the warning was created) npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@11.4.2 npm error gyp info using node@24.11.0 | win32 | x64 npm error gyp info find Python using Python version 3.13.9 found at "D:\TOOf\python.exe" npm error gyp ERR! find VS npm error gyp ERR! find VS msvs_version not set from command line or npm config npm error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details. npm error gyp ERR! find VS npm error gyp ERR! find VS Failure details: undefined npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details. npm error gyp ERR! find VS npm error gyp ERR! find VS Failure details: undefined npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21 npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21 npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21 npm error gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18 npm error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm error gyp ERR! find VS npm error gyp ERR! find VS ************************************************************** npm error gyp ERR! find VS You need to install the latest version of Visual Studio npm error gyp ERR! find VS including the "Desktop development with C++" workload. npm error gyp ERR! find VS For more information consult the documentation at: npm error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows npm error gyp ERR! find VS ************************************************************** npm error gyp ERR! find VS npm error gyp ERR! configure error npm error gyp ERR! stack Error: Could not find any Visual Studio installation to use npm error gyp ERR! stack at VisualStudioFinder.fail (D:\TOOf\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:118:11) npm error gyp ERR! stack at VisualStudioFinder.findVisualStudio (D:\TOOf\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:17) npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:105:5) npm error gyp ERR! stack at async createBuildDir (D:\TOOf\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:112:18) npm error gyp ERR! stack at async run (D:\TOOf\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18) npm error gyp ERR! System Windows_NT 10.0.22631 npm error gyp ERR! command "D:\\TOOf\\nodejs\\node.exe" "D:\\TOOf\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" npm error gyp ERR! cwd C:\Users\曾\Desktop\guigu-oa\guigu-oa-admin\vue-admin-template-master\node_modules\deasync npm error gyp ERR! node -v v24.11.0 npm error gyp ERR! node-gyp -v v11.4.2 npm error gyp ERR! not ok npm error Build failed npm error A complete log of this run can be found in: D:\TOOf\nodejs\node_cache\_logs\2025-10-29T13_33_17_219Z-debug-0.log PS C:\Users\曾\Desktop\guigu-oa\guigu-oa-admin\vue-admin-template-master>
10-30
PS C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp> npm install Debugger attached. npm warn deprecated lodash.template@4.5.0: This package is deprecated. Use https://socket.dev/npm/package/eta instead. npm warn deprecated shvl@2.0.3: older versions vulnerable to prototype pollution npm warn deprecated docsearch.js@2.6.3: This package has been deprecated and is no longer maintained. Please use @docsearch/js. npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. npm warn deprecated npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) npm warn deprecated figgy-pudding@3.5.2: This module is no longer supported. npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated har-validator@5.1.5: this library is no longer supported npm warn deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm warn deprecated gauge@2.7.4: This package is no longer supported. npm warn deprecated osenv@0.1.5: This package is no longer supported. npm warn deprecated are-we-there-yet@1.1.7: This package is no longer supported. npm warn deprecated npmlog@4.1.2: This package is no longer supported. npm warn deprecated fstream@1.0.12: This package is no longer supported. npm warn deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm warn deprecated fs-write-stream-atomic@1.0.10: This package is no longer supported. npm warn deprecated copy-concurrently@1.0.5: This package is no longer supported. npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated move-concurrently@1.0.1: This package is no longer supported. npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog npm warn deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm warn deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm warn deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm warn deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' npm warn deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm warn deprecated webpack-chain@4.12.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported npm warn deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest npm warn deprecated @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead. npm warn deprecated @babel/plugin-proposal-optional-catch-binding@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead. npm warn deprecated @babel/plugin-proposal-json-strings@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead. npm warn deprecated @babel/plugin-proposal-unicode-property-regex@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead. npm warn deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm warn deprecated vuex-persistedstate@3.2.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated vue-i18n@8.28.2: Vue I18n v8.x has reached EOL and is no longer actively maintained. About maintenance status, see https://vue-i18n.intlify.dev/guide/maintenance.html npm warn deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. npm warn deprecated eslint-loader@3.0.4: This loader has been deprecated. Please use eslint-webpack-plugin npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm warn deprecated node-sass@4.14.1: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead. npm warn deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 npm warn deprecated eslint@5.16.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. npm warn deprecated iscroll@5.2.0: deprecated npm warn deprecated mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm warn deprecated webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported npm warn deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details. npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported npm warn deprecated webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\@hapi'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules\\@hapi' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules\\@vue', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\@vue\compiler-core\node_modules'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules\\@vue\\compiler-core\\node_modules' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules\\@vuepress', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\@vuepress'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules\\@vuepress' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\node-sass npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js npm error Building: C:\Program Files\nodejs\node.exe C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm error Debugger attached. npm error Debugger attached. npm error gyp info it worked if it ends with ok npm error gyp verb cli [ npm error gyp verb cli 'C:\\Program Files\\nodejs\\node.exe', npm error gyp verb cli 'C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules\\node-gyp\\bin\\node-gyp.js', npm error gyp verb cli 'rebuild', npm error gyp verb cli '--verbose', npm error gyp verb cli '--libsass_ext=', npm error gyp verb cli '--libsass_cflags=', npm error gyp verb cli '--libsass_ldflags=', npm error gyp verb cli '--libsass_library=' npm error gyp verb cli ] npm error gyp info using node-gyp@3.8.0 npm error gyp info using node@24.3.0 | win32 | x64 npm error gyp verb command rebuild [] npm error gyp verb command clean [] npm error gyp verb clean removing "build" directory npm error gyp verb command configure [] npm error gyp verb check python checking for Python executable "python2" in the PATH npm error gyp verb `which` failed Error: not found: python2 npm error gyp verb `which` failed at getNotFoundError (C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:13:12) npm error gyp verb `which` failed at F (C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:68:19) npm error gyp verb `which` failed at E (C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:80:29) npm error gyp verb `which` failed at C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:89:16 npm error gyp verb `which` failed at C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\isexe\index.js:42:5 npm error gyp verb `which` failed at C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\isexe\windows.js:36:5 npm error gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:189:21) npm error gyp verb `which` failed python2 Error: not found: python2 npm error gyp verb `which` failed at getNotFoundError (C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:13:12) npm error gyp verb `which` failed at F (C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:68:19) npm error gyp verb `which` failed at E (C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:80:29) npm error gyp verb `which` failed at C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\which\which.js:89:16 npm error gyp verb `which` failed at C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\isexe\index.js:42:5 npm error gyp verb `which` failed at C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\isexe\windows.js:36:5 npm error gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:189:21) { npm error gyp verb `which` failed code: 'ENOENT' npm error gyp verb `which` failed } npm error gyp verb check python checking for Python executable "python" in the PATH npm error gyp verb `which` succeeded python C:\Python313\python.EXE npm error (node:3656) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead. npm error (Use `node --trace-deprecation ...` to show where the warning was created) npm error gyp ERR! configure error npm error gyp ERR! stack Error: Command failed: C:\Python313\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; npm error gyp ERR! stack File "<string>", line 1 npm error gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; npm error gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ npm error gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? npm error gyp ERR! stack npm error gyp ERR! stack at genericNodeError (node:internal/errors:983:15) npm error gyp ERR! stack at wrappedFn (node:internal/errors:537:14) npm error gyp ERR! stack at ChildProcess.exithandler (node:child_process:415:12) npm error gyp ERR! stack at ChildProcess.emit (node:events:507:28) npm error gyp ERR! stack at maybeClose (node:internal/child_process:1101:16) npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5) npm error gyp ERR! System Windows_NT 10.0.26100 npm error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\fcube-app\\W11.F-CUBE-A-APP\\CL_CSM\\src\\main\\webapp\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" npm error gyp ERR! cwd C:\fcube-app\W11.F-CUBE-A-APP\CL_CSM\src\main\webapp\node_modules\node-sass npm error gyp ERR! node -v v24.3.0 npm error gyp ERR! node-gyp -v v3.8.0 npm error gyp ERR! not ok npm error Waiting for the debugger to disconnect... npm error Build failed with error code: 1 npm error Waiting for the debugger to disconnect... npm error A complete log of this run can be found in: D:\node\node_cache\_logs\2025-08-22T05_02_59_796Z-debug-0.log Waiting for the debugger to disconnect...
08-23
General Description Nightly build for SCR repo Plain text Preview Commit agent's Docker container ? Define a Docker template Discard old builds ? Permission to Copy Artifact This project is parameterized ? String Parameter ? Name ? DOCKERFILE_LOCATION Default Value ? CAMEOS/docker Description ? location where dockerfile is placed Plain text Preview Trim the string ? Add Parameter Throttle builds ? Execute concurrent builds if necessary ? Advanced Source Code Management Connect and manage your code repository to automatically pull the latest code for your builds. None Git ? Triggers Set up automated actions that start your build based on specific events, like code changes or scheduled times. Trigger builds remotely (e.g., from scripts) ? Build after other projects are built ? Build periodically ? Schedule ? H 2 * * 1-5 Would last have run at Thursday, December 11, 2025, 2:22:00 AM Pacific Standard Time; would next run at Friday, December 12, 2025, 2:22:00 AM Pacific Standard Time. Gerrit event ? Poll SCM ? Environment Configure settings and variables that define the context in which your build runs, like credentials, paths, and global parameters. Use secret text(s) or file(s) ? Build Steps Automate your build process with ordered tasks like code compilation, testing, and deployment. Execute shell ? Command See the list of available environment variables # REPO INITIALIZATION AND ENVIRONMENT SETUP # - Sets up repo tool environment and downloads source code # - Configures git settings for Jenkins CI user # - Initializes repository with product-specific branch and manifest # - Performs incremental repo sync to get latest changes env # Informational; Mostly for debugging # Only clean and initialize if .repo doesn't exist or is incomplete if [ ! -d ".repo/repo" ] || [ ! -d ".repo/manifests" ]; then echo "Repo not initialized or incomplete, setting up..." rm -rf .repo #Remove Any dirs related to source code mkdir -p .repo/repo tar -xzf /home/tplink/repo_tool_offline.tar.gz -C .repo NEED_INIT=true else echo "Repo already initialized, skipping setup..." NEED_INIT=false fi NEED_INIT=true # Set git name and email (always safe to set) git config --global user.name "Jenkins CI" git config --global user.email "jenkins@tp-link.com" # Disable git UI color git config --global color.ui false # Set environment variables to prevent any network calls export REPO_NO_SELF_UPDATE=1 export GIT_TERMINAL_PROMPT=0 export GIT_SSH_COMMAND="ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" # Only run repo init if we just cleaned/extracted if [ "$NEED_INIT" = true ]; then echo "Running repo init (first time)..." # REPLACE THE BELOW INFORMATION WITH APPROPRIATE REPOSITORY AND BRANCH repo init -u ssh://gerrit/manifests/CEE -b Tapo/H500 -m manifest.xml echo "Running repo init (second time)..." # REPLACE THE BELOW INFORMATION WITH APPROPRIATE REPOSITORY AND BRANCH repo init -u ssh://gerrit/manifests/CEE -b Tapo/H500 -m manifest.xml fi # Run repo sync - first attempt (will be killed) echo "Starting repo sync (first attempt - will kill after 3 seconds)..." repo sync -c -j14 -vv & SYNC_PID=$! sleep 3 kill $SYNC_PID 2>/dev/null || true wait $SYNC_PID 2>/dev/null || true echo "Killed first sync attempt, waiting a moment..." sleep 1 # Always run the final sync (either fresh or incremental) echo "Running repo sync..." repo sync -c -j14 -vv echo "Repo sync completed successfully!" # REPLACE THE BELOW DIR APPROPRIATE DIR cd CAMEOS repo forall -c ' # Only run if HEAD is detached if [ -z "$(git symbolic-ref --short -q HEAD)" ]; then # Get the remote branch names from origin/gerrit for b in $(git branch -r | grep "gerrit/" | sed "s|gerrit/||"); do # Just pick the branch that exists remotely git checkout -B $b gerrit/$b break done fi ' cd ../ # REPO INITIALIZATION AND ENVIRONMENT SETUP # - Sets up repo tool environment and downloads source code # - Configures git settings for Jenkins CI user # - Initializes repository with product-specific branch and manifest # - Performs incremental repo sync to get latest changes env # Informational; Mostly for debugging # Only clean and initialize if .repo doesn't exist or is incomplete if [ ! -d ".repo/repo" ] || [ ! -d ".repo/manifests" ]; then echo "Repo not initialized or incomplete, setting up..." rm -rf .repo #Remove Any dirs related to source code mkdir -p .repo/repo tar -xzf /home/tplink/repo_tool_offline.tar.gz -C .repo NEED_INIT=true else echo "Repo already initialized, skipping setup..." NEED_INIT=false fi NEED_INIT=true # Set git name and email (always safe to set) git config --global user.name "Jenkins CI" git config --global user.email "jenkins@tp-link.com" # Disable git UI color git config --global color.ui false # Set environment variables to prevent any network calls export REPO_NO_SELF_UPDATE=1 export GIT_TERMINAL_PROMPT=0 export GIT_SSH_COMMAND="ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" # Only run repo init if we just cleaned/extracted if [ "$NEED_INIT" = true ]; then echo "Running repo init (first time)..." # REPLACE THE BELOW INFORMATION WITH APPROPRIATE REPOSITORY AND BRANCH repo init -u ssh://gerrit/manifests/CEE -b Tapo/H500 -m manifest.xml echo "Running repo init (second time)..." # REPLACE THE BELOW INFORMATION WITH APPROPRIATE REPOSITORY AND BRANCH repo init -u ssh://gerrit/manifests/CEE -b Tapo/H500 -m manifest.xml fi # Run repo sync - first attempt (will be killed) echo "Starting repo sync (first attempt - will kill after 3 seconds)..." repo sync -c -j14 -vv & SYNC_PID=$! sleep 3 kill $SYNC_PID 2>/dev/null || true wait $SYNC_PID 2>/dev/null || true echo "Killed first sync attempt, waiting a moment..." sleep 1 # Always run the final sync (either fresh or incremental) echo "Running repo sync..." repo sync -c -j14 -vv echo "Repo sync completed successfully!" # REPLACE THE BELOW DIR APPROPRIATE DIR cd CAMEOS repo forall -c ' # Only run if HEAD is detached if [ -z "$(git symbolic-ref --short -q HEAD)" ]; then # Get the remote branch names from origin/gerrit for b in $(git branch -r | grep "gerrit/" | sed "s|gerrit/||"); do # Just pick the branch that exists remotely git checkout -B $b gerrit/$b break done fi ' cd ../ Advanced Execute shell ? Command See the list of available environment variables #!/bin/bash IMAGE_NAME="h500_v1_build_env:latest" # Function to ensure cleanup ensure_cleanup() { local container_id="$1" echo "--- ENSURING CLEANUP ---" # Stop and remove container if it exists if docker ps -q --filter "id=${container_id}" | grep -q .; then docker stop "${container_id}" fi if docker ps -aq --filter "id=${container_id}" | grep -q .; then docker rm "${container_id}" fi # Remove image if docker images -q "${IMAGE_NAME}" | grep -q .; then docker rmi "${IMAGE_NAME}" fi # Clean up dangling resources docker system prune -f } # Build image docker build -t "${IMAGE_NAME}" "${DOCKERFILE_LOCATION}" || { echo "❌ Docker image build failed." exit 1 } echo "--- Docker image built successfully ---" pwd # Run container and capture ID CONTAINER_ID=$(docker run -d \ -v "${WORKSPACE}:/build" \ "${IMAGE_NAME}" tail -f /dev/null) # Ensure cleanup on any exit trap "ensure_cleanup ${CONTAINER_ID}" EXIT INT TERM find platform/iplatform/private/matter-* -name "*.sh" | xargs sed -i 's/IOT\/SDK\/MATTER/Tapo\/base\/vendor\/IOT\/SDK\/MATTER/g' # Execute build with proper error propagation echo "--- Executing build ---" if docker exec "${CONTAINER_ID}" /bin/bash -c " cd /build/CAMEOS && \ git config --global --add safe.directory /build/CAMEOS/platform/iplatform/private/ams && \ make PRODUCT_NAME=H500 CLOUD=1 V=s "; then echo "✅ Build completed successfully" else echo "❌ Build failed" exit 1 fi #!/bin/bash IMAGE_NAME="h500_v1_build_env:latest" # Function to ensure cleanup ensure_cleanup() { local container_id="$1" echo "--- ENSURING CLEANUP ---" # Stop and remove container if it exists if docker ps -q --filter "id=${container_id}" | grep -q .; then docker stop "${container_id}" fi if docker ps -aq --filter "id=${container_id}" | grep -q .; then docker rm "${container_id}" fi # Remove image if docker images -q "${IMAGE_NAME}" | grep -q .; then docker rmi "${IMAGE_NAME}" fi # Clean up dangling resources docker system prune -f } # Build image docker build -t "${IMAGE_NAME}" "${DOCKERFILE_LOCATION}" || { echo "❌ Docker image build failed." exit 1 } echo "--- Docker image built successfully ---" pwd # Run container and capture ID CONTAINER_ID=$(docker run -d \ -v "${WORKSPACE}:/build" \ "${IMAGE_NAME}" tail -f /dev/null) # Ensure cleanup on any exit trap "ensure_cleanup ${CONTAINER_ID}" EXIT INT TERM find platform/iplatform/private/matter-* -name "*.sh" | xargs sed -i 's/IOT\/SDK\/MATTER/Tapo\/base\/vendor\/IOT\/SDK\/MATTER/g' # Execute build with proper error propagation echo "--- Executing build ---" if docker exec "${CONTAINER_ID}" /bin/bash -c " cd /build/CAMEOS && \ git config --global --add safe.directory /build/CAMEOS/platform/iplatform/private/ams && \ make PRODUCT_NAME=H500 CLOUD=1 V=s "; then echo "✅ Build completed successfully" else echo "❌ Build failed" exit 1 fi Advanced Add build step Post-build Actions Define what happens after a build completes, like sending notifications, archiving artifacts, or triggering other jobs. Archive the artifacts ? Files to archive ? CAMEOS/image/*.bin ‘CAMEOS/image/*.bin’ doesn’t match anything: ‘CAMEOS’ exists but not ‘CAMEOS/image/*.bin’ Advanced Add post-build action
12-13
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值