Team,
I our project we have many components and we have created the versions like componentName-version eg. Internet-1.1.0, Engine-status-1.0
So we have many components with the same name like Internet but the versions are different like Internet-1.1.0, Internet-1.1.1, Internet-1.2.0, Engine-status-1.0, Engine-status-1.1.0, Engine-status-1.1.2 etc..
I am able to fetch the components and getting collection of project components but now i want to split the component and version by delimiter "-" and the latest released version needs to archive based on components.
I understand that you want to separate or split the names of something, but
Are you trying to split the names of components or versions?
Why? You have not told us what you want to do with the split bits of the names.
I can write you a couple of lines that will give you strings like "internet" "1.1.0", but what do you want to actually do with those strings?
Actually, in our project, there are a bunch of components that are there and we are managing the version based on the components.
I mean to say.. for each component we have multiple versions. Our requirement is we want to archive the version which is older than two years but based on the component.
Because each component has multiple versions and the version name is like <componentname-version>.
eg. Internet-1.1.0
Let say in component Internet we have four versions like Internet-1.1.0, Internet-1.1.1, Internet-1.2.0,, Internet-1.2.1 the latest version Internet-1.2.1 should not be archive but the other three versions can be archived.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, but that doesn't tell us what you want to do with the strings you're going to get, or whether the names are currently versions or components.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.